pub trait AuthStore: Send + Sync {
// Required methods
fn get(&self, provider: &str) -> Option<Credential>;
fn set(&self, provider: &str, c: Credential) -> Result<()>;
fn list(&self) -> Vec<String>;
fn remove(&self, provider: &str) -> Result<()>;
}Expand description
Stores provider credentials. Backend priority: OS keychain → encrypted file → env.
Required Methods§
fn get(&self, provider: &str) -> Option<Credential>
fn set(&self, provider: &str, c: Credential) -> Result<()>
fn list(&self) -> Vec<String>
fn remove(&self, provider: &str) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AuthStore for ChainedAuthStore
impl AuthStore for EncryptedFileStore
impl AuthStore for KeyringAuthStore
Available on crate feature
keyring only.