Skip to main content

SecretStore

Trait SecretStore 

Source
pub trait SecretStore: Send + Sync {
    // Required methods
    fn set_secret(&self, by: &str, name: &str, value: &str) -> Result<()>;
    fn secret(&self, name: &str) -> Option<String>;
    fn secret_info(&self, name: &str) -> Option<SecretInfo>;
    fn secret_names(&self) -> Vec<String>;
}
Expand description

Git and LLM tokens, by name.

Required Methods§

Source

fn set_secret(&self, by: &str, name: &str, value: &str) -> Result<()>

Store value under name; an empty value removes it.

Source

fn secret(&self, name: &str) -> Option<String>

Source

fn secret_info(&self, name: &str) -> Option<SecretInfo>

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§