Skip to main content

CredentialStore

Trait CredentialStore 

Source
pub trait CredentialStore: Send + Sync {
    // Required methods
    fn get(&self, key: &str) -> CredentialFuture<'_, Option<Credential>>;
    fn set(&self, key: &str, credential: Credential) -> CredentialFuture<'_, ()>;
    fn delete(&self, key: &str) -> CredentialFuture<'_, ()>;
}
Expand description

Pluggable credential storage abstraction.

Thread-safe for concurrent tool executions. Implementations must be Send + Sync to allow sharing across tokio::spawn boundaries.

Required Methods§

Source

fn get(&self, key: &str) -> CredentialFuture<'_, Option<Credential>>

Retrieve a credential by key.

Source

fn set(&self, key: &str, credential: Credential) -> CredentialFuture<'_, ()>

Store or update a credential by key.

Source

fn delete(&self, key: &str) -> CredentialFuture<'_, ()>

Delete a credential by key.

Implementors§