Skip to main content

SecretStore

Trait SecretStore 

Source
pub trait SecretStore: Send + Sync {
    // Required methods
    fn set_secret(&self, key: &str, secret: &str) -> Result<()>;
    fn get_secret(&self, key: &str) -> Result<Option<String>>;
}

Required Methods§

Source

fn set_secret(&self, key: &str, secret: &str) -> Result<()>

Source

fn get_secret(&self, key: &str) -> Result<Option<String>>

Implementors§