Struct age::x25519::Identity[][src]

pub struct Identity(_);
Expand description

The standard age identity type, which can decrypt files encrypted to the corresponding Recipient.

Implementations

Generates a new secret key.

Serializes this secret key as a string.

Returns the recipient key for this secret key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Parses an X25519 identity from a string.

The associated error which can be returned from parsing.

Attempts to unwrap the given stanza with this identity. Read more

Attempts to unwrap any of the given stanzas, which are assumed to come from the same age file header, and therefore contain the same file key. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.