[][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]

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

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

type Target = C

The resulting type after dereferencing.

Auto Trait Implementations

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

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

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

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

impl<'a, C> !UnwindSafe for ComponentAmalgamation<'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>,