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

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

A certificate's component and its associated data.

Methods

impl<'a, C> ComponentAmalgamation<'a, C>[src]

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 with_policy<T>(
    self,
    policy: &'a dyn Policy,
    time: T
) -> Result<ValidComponentAmalgamation<'a, C>> where
    T: Into<Option<SystemTime>>, 
[src]

Sets the reference time for the amalgamation.

If time is None, the current time is used.

This transforms the ComponentAmalgamation into a ValidComponentAmalgamation.

impl<'a> ComponentAmalgamation<'a, UserID>[src]

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

Returns a reference to the User ID.

impl<'a> ComponentAmalgamation<'a, UserAttribute>[src]

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

Returns a reference to the User Attribute.

Trait Implementations

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

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

Performs copy-assignment from source. Read more

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

type Target = C

The resulting type after dereferencing.

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

Auto Trait Implementations

impl<'a, C> Send for ComponentAmalgamation<'a, C> where
    C: Sync

impl<'a, C> Sync for ComponentAmalgamation<'a, C> where
    C: Sync

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.

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