pub enum AuthCredentialsStoreMode {
Keyring,
File,
Auto,
}Expand description
Preferred storage backend for credentials.
Keyring: Use OS-specific secure storage (macOS Keychain, Windows Credential Manager, Linux Secret Service). This is the default as it’s the most secure option.File: Use AES-256-GCM encrypted file (requires thefile-storagefeature or custom implementation)Auto: Try keyring first, fall back to file if unavailable
Variants§
Keyring
Use OS-specific keyring service. This is the most secure option as credentials are managed by the OS and are not accessible to other users or applications.
File
Persist credentials in an encrypted file. The file is encrypted with AES-256-GCM using a machine-derived key.
Auto
Use keyring when available; otherwise, fall back to file.
Implementations§
Source§impl AuthCredentialsStoreMode
impl AuthCredentialsStoreMode
Sourcepub fn effective_mode(self) -> Self
pub fn effective_mode(self) -> Self
Get the effective storage mode, resolving Auto to the best available option.
Trait Implementations§
Source§impl Clone for AuthCredentialsStoreMode
impl Clone for AuthCredentialsStoreMode
Source§fn clone(&self) -> AuthCredentialsStoreMode
fn clone(&self) -> AuthCredentialsStoreMode
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 AuthCredentialsStoreMode
impl Debug for AuthCredentialsStoreMode
Source§impl Default for AuthCredentialsStoreMode
impl Default for AuthCredentialsStoreMode
Source§impl<'de> Deserialize<'de> for AuthCredentialsStoreMode
impl<'de> Deserialize<'de> for AuthCredentialsStoreMode
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 AuthCredentialsStoreMode
impl PartialEq for AuthCredentialsStoreMode
Source§impl Serialize for AuthCredentialsStoreMode
impl Serialize for AuthCredentialsStoreMode
impl Copy for AuthCredentialsStoreMode
impl Eq for AuthCredentialsStoreMode
impl StructuralPartialEq for AuthCredentialsStoreMode
Auto Trait Implementations§
impl Freeze for AuthCredentialsStoreMode
impl RefUnwindSafe for AuthCredentialsStoreMode
impl Send for AuthCredentialsStoreMode
impl Sync for AuthCredentialsStoreMode
impl Unpin for AuthCredentialsStoreMode
impl UnsafeUnpin for AuthCredentialsStoreMode
impl UnwindSafe for AuthCredentialsStoreMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more