[][src]Struct crev_lib::id::LockedId

pub struct LockedId {
    pub url: Url,
    pub public_key: Vec<u8>,
    // some fields omitted
}

Serialized, stored on disk

Fields

url: Urlpublic_key: Vec<u8>

Methods

impl LockedId[src]

pub fn from_own_id(own_id: &OwnId, passphrase: &str) -> Result<LockedId>[src]

pub fn to_pubid(&self) -> PubId[src]

pub fn pub_key_as_base64(&self) -> String[src]

pub fn save_to(&self, path: &Path) -> Result<()>[src]

pub fn read_from_yaml_file(path: &Path) -> Result<Self>[src]

pub fn to_unlocked(&self, passphrase: &str) -> Result<OwnId>[src]

Trait Implementations

impl Clone for LockedId[src]

impl Debug for LockedId[src]

impl<'de> Deserialize<'de> for LockedId[src]

impl Display for LockedId[src]

impl FromStr for LockedId[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for LockedId[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,