Skip to main content

get

Function get 

Source
pub fn get(name: &str) -> Result<Option<String>, SecretError>
Expand description

Fetch a stored secret. Ok(None) means “no entry” (not an error).

§Errors

Returns SecretError if the OS keychain is unreachable.