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

pub struct KeyAmalgamation<'a, P: KeyParts> { /* fields omitted */ }

A Key and its associated data.

Methods

impl<'a, P> KeyAmalgamation<'a, P> where
    P: KeyParts
[src]

pub fn mark_parts_public(self) -> KeyAmalgamation<'a, PublicParts>[src]

Changes the key's parts tag to PublicParts.

pub fn mark_parts_public_ref(&'a self) -> &'a KeyAmalgamation<'a, PublicParts>[src]

Changes the key's parts tag to PublicParts.

pub fn mark_parts_secret(self) -> Result<KeyAmalgamation<'a, SecretParts>>[src]

Changes the key's parts tag to SecretParts.

pub fn mark_parts_secret_ref(
    &'a self
) -> Result<&'a KeyAmalgamation<'a, SecretParts>>
[src]

Changes the key's parts tag to SecretParts.

pub fn mark_parts_unspecified(self) -> KeyAmalgamation<'a, UnspecifiedParts>[src]

Changes the key's parts tag to UnspecifiedParts.

pub fn mark_parts_unspecified_ref(
    &'a self
) -> &KeyAmalgamation<'a, UnspecifiedParts>
[src]

Changes the key's parts tag to UnspecifiedParts.

impl<'a, P: 'a + KeyParts> KeyAmalgamation<'a, P>[src]

pub fn primary(&self) -> bool[src]

Returns whether the key is a primary key.

pub fn key(&self) -> &'a Key<P, UnspecifiedRole>[src]

Returns the key.

Methods from Deref<Target = KeyBundle<P, UnspecifiedRole>>

pub fn mark_parts_public_ref(&self) -> &KeyBundle<PublicParts, R>[src]

Changes the key's parts tag to PublicParts.

pub fn mark_parts_secret_ref(&self) -> Result<&KeyBundle<SecretParts, R>>[src]

Changes the key's parts tag to SecretParts.

pub fn mark_parts_unspecified_ref(&self) -> &KeyBundle<UnspecifiedParts, R>[src]

Changes the key's parts tag to UnspecifiedParts.

pub fn mark_role_primary_ref(&self) -> &KeyBundle<P, PrimaryRole>[src]

Changes the key's role tag to PrimaryRole.

pub fn mark_role_subordinate_ref(&self) -> &KeyBundle<P, SubordinateRole>[src]

Changes the key's role tag to SubordinateRole.

pub fn mark_role_unspecified_ref(&self) -> &KeyBundle<P, UnspecifiedRole>[src]

Changes the key's role tag to UnspecifiedRole.

Trait Implementations

impl<'a, P: 'a + KeyParts> Amalgamation<'a, Key<P, UnspecifiedRole>> for KeyAmalgamation<'a, P>[src]

type V = ValidKeyAmalgamation<'a, P>

The type returned by with_policy.

impl<'a> From<KeyAmalgamation<'a, PublicParts>> for KeyAmalgamation<'a, UnspecifiedParts>[src]

impl<'a> From<&'a KeyAmalgamation<'a, PublicParts>> for &'a KeyAmalgamation<'a, UnspecifiedParts>[src]

impl<'a> From<KeyAmalgamation<'a, SecretParts>> for KeyAmalgamation<'a, PublicParts>[src]

impl<'a> From<&'a KeyAmalgamation<'a, SecretParts>> for &'a KeyAmalgamation<'a, PublicParts>[src]

impl<'a> From<KeyAmalgamation<'a, SecretParts>> for KeyAmalgamation<'a, UnspecifiedParts>[src]

impl<'a> From<&'a KeyAmalgamation<'a, SecretParts>> for &'a KeyAmalgamation<'a, UnspecifiedParts>[src]

impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts>> for KeyAmalgamation<'a, PublicParts>[src]

impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts>> for &'a KeyAmalgamation<'a, PublicParts>[src]

impl<'a, P> From<PrimaryKeyAmalgamation<'a, P>> for KeyAmalgamation<'a, P> where
    P: KeyParts
[src]

impl<'a, P: KeyParts> From<ValidKeyAmalgamation<'a, P>> for KeyAmalgamation<'a, P>[src]

impl<'a, P: Clone + KeyParts> Clone for KeyAmalgamation<'a, P>[src]

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

Performs copy-assignment from source. Read more

impl<'a, P: KeyParts> Deref for KeyAmalgamation<'a, P>[src]

type Target = KeyBundle<P, UnspecifiedRole>

The resulting type after dereferencing.

impl<'a, P: Debug + KeyParts> Debug for KeyAmalgamation<'a, P>[src]

impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts>> for KeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts>> for &'a KeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts>> for KeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts>> for &'a KeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a, P> Send for KeyAmalgamation<'a, P> where
    P: Sync

impl<'a, P> Sync for KeyAmalgamation<'a, P> where
    P: 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>,