pub trait Store: Send + Sync {
// Required methods
fn get(
&self,
service: &str,
key: &str,
) -> Result<Option<Zeroizing<String>>, StoreError>;
fn put(
&self,
service: &str,
key: &str,
value: &str,
) -> Result<(), StoreError>;
}Expand description
A host’s secret store: what the provider needs of Credential Manager or the Secret Service.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".