pub struct ProviderConfig {
pub kind: ProviderKind,
pub base_url: String,
pub model: String,
pub api_key: SecretString,
pub timeout: Duration,
pub allow_insecure_test_base_url: bool,
}Fields§
§kind: ProviderKind§base_url: String§model: String§api_key: SecretString§timeout: Duration§allow_insecure_test_base_url: boolImplementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn parse(self) -> Result<Self, ProviderError>
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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