pub struct ProviderConfig {
pub base_url: Option<String>,
pub api_key_env: Option<String>,
pub api_key: Option<String>,
pub kind: ProviderKind,
pub no_auth: bool,
pub extra_headers: HashMap<String, String>,
}Fields§
§base_url: Option<String>§api_key_env: Option<String>§api_key: Option<String>§kind: ProviderKind§no_auth: bool§extra_headers: HashMap<String, String>Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn with_base_url(self, base: impl Into<String>) -> Self
pub fn with_api_key_env(self, env: impl Into<String>) -> Self
pub fn with_api_key(self, key: impl Into<String>) -> Self
pub fn with_kind(self, kind: ProviderKind) -> Self
pub fn with_no_auth(self, no_auth: bool) -> Self
pub fn with_header( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
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 · 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 ProviderConfig
impl Debug for ProviderConfig
Source§impl Default for ProviderConfig
impl Default for ProviderConfig
Source§fn default() -> ProviderConfig
fn default() -> ProviderConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin 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