Struct keyring::Entry[][src]

pub struct Entry { /* fields omitted */ }

Implementations

Create an entry for the given service and username. This maps to a target credential in the default keychain.

Create an entry for the given target, service, and username. On Linux and Mac, the target is interpreted as naming the collection/keychain to store the credential. On Windows, the target is used directly as the target name of the credential.

Create an entry that uses the given credential for storage. Callers can use their own algorithm to produce a platform-specific credential spec for the given service and username and then call this entry with that value.

Set the password for this entry. Any other platform-specific annotations are determined by the mapper that was used to create the credential.

Retrieve the password saved for this entry. Returns a NoEntry error is there isn’t one.

Retrieve the password and all the other fields set in the platform-specific credential. This allows retrieving metadata on the credential that were saved by external applications.

Delete the password for this entry. (Although the entry itself follows the Rust structure lifecycle, deleting the password deletes the platform credential from secure storage.)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.