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

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

A certificate's component and its associated data.


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

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)

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>, 

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.

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