pub struct Store { /* private fields */ }Expand description
The store for Mac keychain credentials
Implementations§
Trait Implementations§
Source§impl CredentialStoreApi for Store
impl CredentialStoreApi for Store
Source§fn build(
&self,
service: &str,
user: &str,
modifiers: Option<&HashMap<&str, &str>>,
) -> Result<Entry>
fn build( &self, service: &str, user: &str, modifiers: Option<&HashMap<&str, &str>>, ) -> Result<Entry>
See the keychain-core API docs.
The only option you can specify is keychain, and the value
must name a keychain (User, System, Common, or Dynamic)
you want to use to hold the credential when it’s created.
The default is the User (aka login) keychain.
Source§fn search(&self, spec: &HashMap<&str, &str>) -> Result<Vec<Entry>>
fn search(&self, spec: &HashMap<&str, &str>) -> Result<Vec<Entry>>
See the keychain-core API docs.
The (optional) search spec keys allowed are service and user. They
are matched case-sensitively against the service and account attributes
of the generic passwords in the store’s configured keychain. A wrapper
for each matching credential is returned. If no service or user is
specified, all credentials in the store’s configured keychain are
returned.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Return the underlying builder object with an Any type so that it can
be downgraded to a Store for platform-specific processing.