[][src]Type Definition sequoia_openpgp::tpk::KeyBinding

type KeyBinding<KeyPart, KeyRole> = ComponentBinding<Key<KeyPart, KeyRole>>;

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

Implementations

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

pub fn mark_parts_public(self) -> KeyBinding<PublicParts, R>[src]

Changes the key's parts tag to PublicParts.

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

Changes the key's parts tag to PublicParts.

pub fn mark_parts_secret(self) -> KeyBinding<SecretParts, R>[src]

Changes the key's parts tag to SecretParts.

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

Changes the key's parts tag to SecretParts.

pub fn mark_parts_unspecified(self) -> KeyBinding<UnspecifiedParts, R>[src]

Changes the key's parts tag to UnspecifiedParts.

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

Changes the key's parts tag to UnspecifiedParts.

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

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

Changes the key's role tag to PrimaryRole.

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

Changes the key's role tag to PrimaryRole.

pub fn mark_role_secondary(self) -> KeyBinding<P, SubordinateRole>[src]

Changes the key's role tag to SubordinateRole.

pub fn mark_role_secondary_ref(&self) -> &KeyBinding<P, SubordinateRole>[src]

Changes the key's role tag to SubordinateRole.

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

Changes the key's role tag to UnspecifiedRole.

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

Changes the key's role tag to UnspecifiedRole.

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl From<ComponentBinding<Key<PublicParts, PrimaryRole>>> for KeyBinding<SecretParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<PublicParts, PrimaryRole>>> for KeyBinding<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<PublicParts, PrimaryRole>>> for KeyBinding<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<PublicParts, PrimaryRole>>> for KeyBinding<UnspecifiedParts, UnspecifiedRole>[src]

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

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

impl From<ComponentBinding<Key<PublicParts, SubordinateRole>>> for KeyBinding<SecretParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<PublicParts, SubordinateRole>>> for KeyBinding<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<PublicParts, SubordinateRole>>> for KeyBinding<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<PublicParts, SubordinateRole>>> for KeyBinding<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<PublicParts, UnspecifiedRole>>> for KeyBinding<SecretParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<PublicParts, UnspecifiedRole>>> for KeyBinding<SecretParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<PublicParts, UnspecifiedRole>>> for KeyBinding<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<PublicParts, UnspecifiedRole>>> for KeyBinding<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<SecretParts, PrimaryRole>>> for KeyBinding<PublicParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<SecretParts, PrimaryRole>>> for KeyBinding<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<SecretParts, PrimaryRole>>> for KeyBinding<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<SecretParts, PrimaryRole>>> for KeyBinding<UnspecifiedParts, UnspecifiedRole>[src]

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

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

impl From<ComponentBinding<Key<SecretParts, SubordinateRole>>> for KeyBinding<PublicParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<SecretParts, SubordinateRole>>> for KeyBinding<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<SecretParts, SubordinateRole>>> for KeyBinding<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<SecretParts, SubordinateRole>>> for KeyBinding<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<SecretParts, UnspecifiedRole>>> for KeyBinding<PublicParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<SecretParts, UnspecifiedRole>>> for KeyBinding<PublicParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<SecretParts, UnspecifiedRole>>> for KeyBinding<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<SecretParts, UnspecifiedRole>>> for KeyBinding<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, PrimaryRole>>> for KeyBinding<PublicParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, PrimaryRole>>> for KeyBinding<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, PrimaryRole>>> for KeyBinding<SecretParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, PrimaryRole>>> for KeyBinding<SecretParts, UnspecifiedRole>[src]

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

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

impl From<ComponentBinding<Key<UnspecifiedParts, SubordinateRole>>> for KeyBinding<PublicParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, SubordinateRole>>> for KeyBinding<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, SubordinateRole>>> for KeyBinding<SecretParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, SubordinateRole>>> for KeyBinding<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBinding<PublicParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBinding<PublicParts, SubordinateRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBinding<SecretParts, PrimaryRole>[src]

impl From<ComponentBinding<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBinding<SecretParts, SubordinateRole>[src]