Skip to main content

get

Function get 

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

Get a secret by name.

Returns Ok(None) if the secret doesn’t exist.

§Errors

Returns SecretError if the operation fails.