[][src]Struct sequoia_openpgp::tpk::SubkeyBinding

pub struct SubkeyBinding { /* fields omitted */ }

A subkey and any associated signatures.


impl SubkeyBinding[src]

pub fn new(subkey: Key, primary_key: &Key) -> Result<Self>[src]

Creates a new subkey binding signature. The subkey can be used for encrypting transport and expires in three years.

pub fn subkey(&self) -> &Key[src]

The key.

pub fn binding_signature(&self) -> Option<&Signature>[src]

Returns the most recent binding signature.

This will never return a revocation certificate.

Normally, we ignore subkeys that don't have a binding signature. However, if there is a valid revocation certificate for the subkey, we keep it. In such cases, this function will return None.

pub fn selfsigs(&self) -> Iter<Signature>[src]

The self-signatures.

All self-signatures have been validated, and the newest self-signature is first.

pub fn certifications(&self) -> Iter<Signature>[src]

Any third-party certifications.

The signatures have not been validated.

pub fn self_revocations(&self) -> Iter<Signature>[src]

Revocations issued by the key itself.

The revocations have been validated, and the newest is first.

pub fn other_revocations(&self) -> Iter<Signature>[src]

Revocations issued by other keys.

The revocations have not been validated.

pub fn revoked(&self) -> RevocationStatus[src]

Returns the subkey's revocation status.

Note: this only returns whether the subkey is revoked. If you want to know whether the key, subkey, etc., is revoked, then you need to query them separately.

Trait Implementations

impl PartialEq<SubkeyBinding> for SubkeyBinding[src]

impl Clone for SubkeyBinding[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for SubkeyBinding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.