pub struct ProviderSettings {
pub enabled: Option<bool>,
pub accounts: HashMap<String, AccountSettings>,
}Expand description
Per-provider settings: a provider-level toggle plus its named accounts.
Fields§
§enabled: Option<bool>Explicit provider-level toggle. None means “auto”: enabled when
credentials are detected or accounts are configured.
accounts: HashMap<String, AccountSettings>Named accounts for this provider.
Implementations§
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 (const: unstable) · 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
Source§impl PartialEq for ProviderSettings
impl PartialEq for ProviderSettings
Source§impl Serialize for ProviderSettings
impl Serialize for ProviderSettings
impl StructuralPartialEq for ProviderSettings
Auto Trait Implementations§
impl Freeze for ProviderSettings
impl RefUnwindSafe for ProviderSettings
impl Send for ProviderSettings
impl Sync for ProviderSettings
impl Unpin for ProviderSettings
impl UnsafeUnpin 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