Struct keyring::credential::LinuxCredential
source · pub struct LinuxCredential {
pub collection: String,
pub attributes: HashMap<String, String>,
pub label: String,
}
Expand description
Linux supports multiple credential stores, each named by a string. Credentials in a store are identified by an arbitrary collection of attributes, and each can have “label” metadata for use in graphical editors.
Fields§
§collection: String
§attributes: HashMap<String, String>
§label: String
Implementations§
source§impl LinuxCredential
impl LinuxCredential
sourcepub fn attributes(&self) -> HashMap<&str, &str>
pub fn attributes(&self) -> HashMap<&str, &str>
Using strings in the credential map makes managing the lifetime of the credential much easier. But since the secret service expects a map from &str to &str, we have this utility to transform the credential’s map into one of the right form.
Trait Implementations§
source§impl Clone for LinuxCredential
impl Clone for LinuxCredential
source§fn clone(&self) -> LinuxCredential
fn clone(&self) -> LinuxCredential
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinuxCredential
impl Debug for LinuxCredential
source§impl PartialEq<LinuxCredential> for LinuxCredential
impl PartialEq<LinuxCredential> for LinuxCredential
source§fn eq(&self, other: &LinuxCredential) -> bool
fn eq(&self, other: &LinuxCredential) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.