[][src]Struct openpgp_keylist::Keylist

pub struct Keylist {
    pub metadata: Metadata,
    pub keys: Vec<Key>,
}

Data structure for an OpenPGP Keylist, as specified in https://www.ietf.org/archive/id/draft-mccain-keylist-05.txt

Fields

metadata: Metadatakeys: Vec<Key>

Implementations

impl Keylist[src]

pub fn new(metadata: Metadata) -> Self[src]

Create a Keylist with metadata set, but no Keys

pub fn sign<'a>(
    self,
    sign: Box<dyn Fn(&str) -> Result<String> + 'a>
) -> Result<SignedKeylist>
[src]

Transform this Keylist into a SignedKeylist

Trait Implementations

impl Debug for Keylist[src]

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

impl Serialize for Keylist[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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.