pub struct ProviderSettings {
pub api_key: Option<String>,
pub base_url: Option<String>,
pub timeout: Option<Duration>,
pub retry_count: Option<usize>,
}Expand description
Settings for a specific provider
Fields§
§api_key: Option<String>API key (can be overridden by environment variable)
base_url: Option<String>Base URL for the provider (for self-hosted or proxy)
timeout: Option<Duration>Request timeout
retry_count: Option<usize>Number of retries on failure
Trait Implementations§
Source§impl Clone for ProviderSettings
impl Clone for ProviderSettings
Source§fn clone(&self) -> ProviderSettings
fn clone(&self) -> ProviderSettings
Returns a duplicate 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 moreSource§impl Debug for ProviderSettings
impl Debug for ProviderSettings
Source§impl Default for ProviderSettings
impl Default for ProviderSettings
Source§fn default() -> ProviderSettings
fn default() -> ProviderSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderSettings
impl<'de> Deserialize<'de> for ProviderSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderSettings
impl RefUnwindSafe for ProviderSettings
impl Send for ProviderSettings
impl Sync for ProviderSettings
impl Unpin for ProviderSettings
impl UnwindSafe for ProviderSettings
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