Skip to main content

get

Function get 

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

The secret stored for account, or None when there is none.

A missing entry is Ok(None); an unreachable or locked store is Err. The distinction matters: collapsing a locked keychain into None would surface to the user as “no API key configured” and send them to re-run lev setup instead of unlocking their keychain.