pub struct AzureChatbotConfiguration {
pub api_key: String,
pub api_endpoint: Url,
}
Fields§
§api_key: String
§api_endpoint: Url
Implementations§
Source§impl AzureChatbotConfiguration
impl AzureChatbotConfiguration
Sourcepub fn try_from_env() -> Result<Option<Self>>
pub fn try_from_env() -> Result<Option<Self>>
Attempts to create an AzureChatbotConfiguration from environment variables.
Returns Ok(Some(AzureChatbotConfiguration))
if both environment variables are set.
Returns Ok(None)
if no environment variables are set for chatbot.
Returns an error if set environment variables fail to parse.
Trait Implementations§
Source§impl Clone for AzureChatbotConfiguration
impl Clone for AzureChatbotConfiguration
Source§fn clone(&self) -> AzureChatbotConfiguration
fn clone(&self) -> AzureChatbotConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl StructuralPartialEq for AzureChatbotConfiguration
Auto Trait Implementations§
impl Freeze for AzureChatbotConfiguration
impl RefUnwindSafe for AzureChatbotConfiguration
impl Send for AzureChatbotConfiguration
impl Sync for AzureChatbotConfiguration
impl Unpin for AzureChatbotConfiguration
impl UnwindSafe for AzureChatbotConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more