[−][src]Struct age::keys::Identity
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]
fn from(key: EncryptedKey) -> Self
[src]
impl From<SecretKey> for Identity
[src]
impl From<UnsupportedKey> for Identity
[src]
fn from(key: UnsupportedKey) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,