#[non_exhaustive]pub enum CredentialStore {
Auto,
Keyring,
File,
}Expand description
Where an auth provider stores credentials.
The variant selects a concrete storage backend
(see crate::auth::storage). Keyring is the default and preserves the
historical behavior (system keychain only, hard error when unavailable);
File is the escape hatch for environments without a working keychain
(headless Linux, WSL).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Try the system keychain; transparently fall back to an unencrypted file when the keychain backend is unavailable.
Keyring
System keychain only. A keychain failure is a hard error and no file is ever written. This is the default.
File
File only: never contact the system keychain. Credentials are written as unencrypted JSON under the config base directory.
Implementations§
Trait Implementations§
Source§impl Clone for CredentialStore
impl Clone for CredentialStore
Source§fn clone(&self) -> CredentialStore
fn clone(&self) -> CredentialStore
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 CredentialStore
Source§impl Debug for CredentialStore
impl Debug for CredentialStore
Source§impl Default for CredentialStore
impl Default for CredentialStore
Source§fn default() -> CredentialStore
fn default() -> CredentialStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialStore
impl<'de> Deserialize<'de> for CredentialStore
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 Display for CredentialStore
impl Display for CredentialStore
impl Eq for CredentialStore
Source§impl FromStr for CredentialStore
impl FromStr for CredentialStore
Source§impl PartialEq for CredentialStore
impl PartialEq for CredentialStore
Source§fn eq(&self, other: &CredentialStore) -> bool
fn eq(&self, other: &CredentialStore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialStore
Auto Trait Implementations§
impl Freeze for CredentialStore
impl RefUnwindSafe for CredentialStore
impl Send for CredentialStore
impl Sync for CredentialStore
impl Unpin for CredentialStore
impl UnsafeUnpin for CredentialStore
impl UnwindSafe for CredentialStore
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,
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§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.