[][src]Type Definition sequoia_openpgp::cert::bundle::KeyBundle

type KeyBundle<KeyPart, KeyRole> = ComponentBundle<Key<KeyPart, KeyRole>>;

A key (primary or subkey, public or private) and any associated signatures.

Implementations

impl<P, R> KeyBundle<P, R> where
    P: KeyParts,
    R: KeyRole
[src]

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

Changes the key's parts tag to PublicParts.

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

Changes the key's parts tag to PublicParts.

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

Changes the key's parts tag to SecretParts.

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

Changes the key's parts tag to SecretParts.

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

Changes the key's parts tag to UnspecifiedParts.

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

Changes the key's parts tag to UnspecifiedParts.

impl<P, R> KeyBundle<P, R> where
    P: KeyParts,
    R: KeyRole
[src]

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

Changes the key's role tag to PrimaryRole.

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

Changes the key's role tag to PrimaryRole.

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

Changes the key's role tag to SubordinateRole.

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

Changes the key's role tag to SubordinateRole.

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

Changes the key's role tag to UnspecifiedRole.

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

Changes the key's role tag to UnspecifiedRole.

Trait Implementations

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, PrimaryRole>>> for &'_ KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, PrimaryRole>>> for &'_ KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, SubordinateRole>>> for &'_ KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, SubordinateRole>>> for &'_ KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, UnspecifiedRole>>> for &'_ KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<'_, '_, P> From<&'_ ComponentBundle<Key<P, UnspecifiedRole>>> for &'_ KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_, R> From<&'_ ComponentBundle<Key<PublicParts, R>>> for &'_ KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_, R> From<&'_ ComponentBundle<Key<SecretParts, R>>> for &'_ KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<'_, '_, R> From<&'_ ComponentBundle<Key<SecretParts, R>>> for &'_ KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_, R> From<&'_ ComponentBundle<Key<UnspecifiedParts, R>>> for &'_ KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl<P> From<ComponentBundle<Key<P, PrimaryRole>>> for KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, PrimaryRole>>> for KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, SubordinateRole>>> for KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, SubordinateRole>>> for KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, UnspecifiedRole>>> for KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, UnspecifiedRole>>> for KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<R> From<ComponentBundle<Key<PublicParts, R>>> for KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<R> From<ComponentBundle<Key<SecretParts, R>>> for KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<R> From<ComponentBundle<Key<SecretParts, R>>> for KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<R> From<ComponentBundle<Key<UnspecifiedParts, R>>> for KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_, R> TryFrom<&'_ ComponentBundle<Key<PublicParts, R>>> for &'_ KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_, '_, R> TryFrom<&'_ ComponentBundle<Key<UnspecifiedParts, R>>> for &'_ KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<R> TryFrom<ComponentBundle<Key<PublicParts, R>>> for KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<R> TryFrom<ComponentBundle<Key<UnspecifiedParts, R>>> for KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.