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§
Sourcefn set_secret(&self, by: &str, name: &str, value: &str) -> Result<()>
fn set_secret(&self, by: &str, name: &str, value: &str) -> Result<()>
Store value under name; an empty value removes it.
fn secret(&self, name: &str) -> Option<String>
fn secret_info(&self, name: &str) -> Option<SecretInfo>
fn secret_names(&self) -> Vec<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".