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.
Trait Implementations§
Source§impl Clone for AuthCredentialsStoreMode
impl Clone for AuthCredentialsStoreMode
impl Copy for AuthCredentialsStoreMode
Source§impl Debug for AuthCredentialsStoreMode
impl Debug for AuthCredentialsStoreMode
Source§impl Default for AuthCredentialsStoreMode
impl Default for AuthCredentialsStoreMode
Source§fn default() -> Self
fn default() -> Self
Platform-aware default:
-
macOS:
File— AES-256-GCM encrypted file with machine-derived key. Avoids macOS Keychain authorization popups that trigger on every new binary (including each release update). Users can opt intoKeyringviacredential_storage_modeinvtcode.toml. -
Linux / Windows / others:
Auto— try OS keyring (Secret Service / Windows Credential Manager, no popups), fall back to encrypted file.
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>,
impl Eq for AuthCredentialsStoreMode
Source§impl PartialEq for AuthCredentialsStoreMode
impl PartialEq for AuthCredentialsStoreMode
Source§impl Serialize for AuthCredentialsStoreMode
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.