[][src]Struct pgp::composed::signed_key::public::SignedPublicSubKey

pub struct SignedPublicSubKey {
    pub key: PublicSubkey,
    pub signatures: Vec<Signature>,
}

Represents a Public PGP SubKey.

Fields

key: PublicSubkeysignatures: Vec<Signature>

Methods

impl SignedPublicSubKey[src]

pub fn new(key: PublicSubkey, signatures: Vec<Signature>) -> Self[src]

pub fn verify(&self, key: &impl PublicKeyTrait) -> Result<()>[src]

pub fn as_unsigned(&self) -> PublicSubkey[src]

Trait Implementations

impl Serialize for SignedPublicSubKey[src]

impl KeyTrait for SignedPublicSubKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of the key.

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the key.

impl PublicKeyTrait for SignedPublicSubKey[src]

impl Clone for SignedPublicSubKey[src]

impl Eq for SignedPublicSubKey[src]

impl PartialEq<SignedPublicSubKey> for SignedPublicSubKey[src]

impl Debug for SignedPublicSubKey[src]

impl StructuralPartialEq for SignedPublicSubKey[src]

impl StructuralEq for SignedPublicSubKey[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

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