[][src]Struct age::keys::Identity

pub struct Identity { /* fields omitted */ }

An identity that has been parsed from some input.

Methods

impl Identity[src]

pub fn from_file(filename: String) -> Result<Vec<Self>>[src]

Parses one or more identities from a file containing valid UTF-8.

pub fn from_buffer<R: BufRead>(data: R) -> Result<Vec<Self>>[src]

Parses one or more identities from a buffered input containing valid UTF-8.

pub fn filename(&self) -> Option<&str>[src]

Returns the filename this identity was parsed from, if known.

pub fn key(&self) -> &IdentityKey[src]

Returns the key corresponding to this identity.

Trait Implementations

impl From<EncryptedKey> for Identity[src]

impl From<SecretKey> for Identity[src]

impl From<UnsupportedKey> for Identity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,