[][src]Struct sequoia_openpgp::tpk::UserIDBinding

pub struct UserIDBinding { /* fields omitted */ }

A User ID and any associated signatures.

Methods

impl UserIDBinding[src]

pub fn userid(&self) -> &UserID[src]

Returns the user id certified by this binding.

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

Returns the most recent binding signature.

This will never return a revocation certificate.

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

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

The self-signatures.

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

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

Any third-party certifications.

The signatures have not been validated.

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

Revocations issued by the key itself.

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

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

Revocations issued by other keys.

The revocations have not been validated.

pub fn revoked<T>(&self, t: T) -> RevocationStatus where
    T: Into<Option<Tm>>, 
[src]

Returns the user id's revocation status at time t. If t is None, the current time is used.

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

Trait Implementations

impl Clone for UserIDBinding[src]

impl Debug for UserIDBinding[src]

impl PartialEq<UserIDBinding> for UserIDBinding[src]

impl StructuralPartialEq for UserIDBinding[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> 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 = 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.