[][src]Struct sequoia_openpgp::cert::components::ValidComponentAmalgamation

pub struct ValidComponentAmalgamation<'a, C> { /* fields omitted */ }

A certificate's component and its associated data.

Methods from Deref<Target = ComponentAmalgamation<'a, C>>

pub fn cert(&self) -> &'a Cert[src]

Returns the certificate that the component came from.

pub fn bundle(&self) -> &'a ComponentBundle<C>[src]

Returns this component's bundle.

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

Returns a reference to the User ID.

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

Returns a reference to the User Attribute.

Trait Implementations

impl<'a, C> Amalgamation<'a> for ValidComponentAmalgamation<'a, C>[src]

fn time(&self) -> SystemTime[src]

Returns the amalgamation's reference time.

For queries that are with respect to a point in time, this determines that point in time. For instance, if a component is created at t_c and expires at t_e, then ValidComponentAmalgamation::alive will return true if the reference time is greater than or equal to t_c and less than t_e.

fn policy(&self) -> &'a dyn Policy[src]

Returns the amalgamation's policy.

fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self> where
    T: Into<Option<SystemTime>>, 
[src]

Changes the amalgamation's policy.

If time is None, the current time is used.

fn binding_signature(&self) -> &'a Signature[src]

Returns the component's binding signature as of the reference time.

fn direct_key_signature(&self) -> Option<&'a Signature>[src]

Returns the Certificate's direct key signature as of the reference time, if any.

Subpackets on direct key signatures apply to all components of the certificate.

fn revoked(&self) -> RevocationStatus<'a>[src]

Returns the component's revocation status as of the amalgamation's reference time.

Note: this does not return whether the certificate is valid.

impl<'a, C: Clone> Clone for ValidComponentAmalgamation<'a, C>[src]

impl<'a, C: Debug> Debug for ValidComponentAmalgamation<'a, C>[src]

impl<'a, C> Deref for ValidComponentAmalgamation<'a, C>[src]

type Target = ComponentAmalgamation<'a, C>

The resulting type after dereferencing.

impl<'a, C> Preferences<'a> for ValidComponentAmalgamation<'a, C>[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for ValidComponentAmalgamation<'a, C>

impl<'a, C> !Send for ValidComponentAmalgamation<'a, C>

impl<'a, C> !Sync for ValidComponentAmalgamation<'a, C>

impl<'a, C> Unpin for ValidComponentAmalgamation<'a, C>

impl<'a, C> !UnwindSafe for ValidComponentAmalgamation<'a, C>

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.

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