Skip to main content

AuthStore

Trait AuthStore 

Source
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§

Source

fn get(&self, provider: &str) -> Option<Credential>

Source

fn set(&self, provider: &str, c: Credential) -> Result<()>

Source

fn list(&self) -> Vec<String>

Source

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§