[][src]Struct sequoia_openpgp::tpk::UserAttributeBinding

pub struct UserAttributeBinding { /* fields omitted */ }

A User Attribute and any associated signatures.

Methods

impl UserAttributeBinding[src]

pub fn user_attribute(&self) -> &UserAttribute[src]

The User attribute.

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 attributes that don't have a binding signature. However, if there is a valid revocation certificate for the user attribute, we keep it. In such cases, this function will return None.

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

The self-signatures.

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

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 first.

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 UserAttribute's revocation status.

Note: this only returns whether the user attribute 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<UserAttributeBinding> for UserAttributeBinding[src]

impl Clone for UserAttributeBinding[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UserAttributeBinding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.