Struct sequoia_openpgp::packet::key::PrimaryRole
source · pub struct PrimaryRole;
Expand description
A marker that indicates the Key
should be treated like a primary key.
Refer to KeyRole
for details.
Trait Implementations§
source§impl Clone for PrimaryRole
impl Clone for PrimaryRole
source§fn clone(&self) -> PrimaryRole
fn clone(&self) -> PrimaryRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrimaryRole
impl Debug for PrimaryRole
source§impl Hash for PrimaryRole
impl Hash for PrimaryRole
source§impl KeyRole for PrimaryRole
impl KeyRole for PrimaryRole
source§fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
Converts a key with an unspecified role into this kind of key. Read more
source§fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
Converts a key reference with an unspecified role into this
kind of key reference. Read more
source§fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
Converts a key bundle with an unspecified role into this kind
of key bundle. Read more
source§fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
Converts a key bundle reference with an unspecified role into
this kind of key bundle reference. Read more
source§impl PartialEq<PrimaryRole> for PrimaryRole
impl PartialEq<PrimaryRole> for PrimaryRole
source§fn eq(&self, other: &PrimaryRole) -> bool
fn eq(&self, other: &PrimaryRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.