pub enum ProviderState {
Enabled,
Disabled,
AutoEnabled,
AutoDisabled,
}Expand description
Resolved enablement state of a provider.
Variants§
Enabled
Explicitly enabled in the config file.
Disabled
Explicitly disabled in the config file.
AutoEnabled
No explicit setting; enabled because credentials/accounts were detected.
AutoDisabled
No explicit setting; disabled because nothing was detected.
Implementations§
Source§impl ProviderState
impl ProviderState
pub fn is_enabled(self) -> bool
Trait Implementations§
Source§impl Clone for ProviderState
impl Clone for ProviderState
Source§fn clone(&self) -> ProviderState
fn clone(&self) -> ProviderState
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 moreimpl Copy for ProviderState
Source§impl Debug for ProviderState
impl Debug for ProviderState
impl Eq for ProviderState
Source§impl PartialEq for ProviderState
impl PartialEq for ProviderState
impl StructuralPartialEq for ProviderState
Auto Trait Implementations§
impl Freeze for ProviderState
impl RefUnwindSafe for ProviderState
impl Send for ProviderState
impl Sync for ProviderState
impl Unpin for ProviderState
impl UnsafeUnpin for ProviderState
impl UnwindSafe for ProviderState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.