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§
Sourcefn get(&self, key: &str) -> CredentialFuture<'_, Option<Credential>>
fn get(&self, key: &str) -> CredentialFuture<'_, Option<Credential>>
Retrieve a credential by key.
Sourcefn set(&self, key: &str, credential: Credential) -> CredentialFuture<'_, ()>
fn set(&self, key: &str, credential: Credential) -> CredentialFuture<'_, ()>
Store or update a credential by key.
Sourcefn delete(&self, key: &str) -> CredentialFuture<'_, ()>
fn delete(&self, key: &str) -> CredentialFuture<'_, ()>
Delete a credential by key.