Struct sequoia_openpgp::packet::key::SecretParts
source · [−]pub struct SecretParts;
Expand description
A marker that indicates that a Key
should be treated like a
secret key.
Unlike the key::PublicParts
marker, this marker asserts that
the Key
contains secret key material. Because secret key
material is not protected by the self-signature, there is no
indication that the secret key material is actually valid.
Refer to KeyParts
for details.
Trait Implementations
sourceimpl Clone for SecretParts
impl Clone for SecretParts
sourcefn clone(&self) -> SecretParts
fn clone(&self) -> SecretParts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SecretParts
impl Debug for SecretParts
sourceimpl Hash for SecretParts
impl Hash for SecretParts
sourceimpl KeyParts for SecretParts
impl KeyParts for SecretParts
sourcefn convert_key<R: KeyRole>(
key: Key<UnspecifiedParts, R>
) -> Result<Key<Self, R>>
fn convert_key<R: KeyRole>(
key: Key<UnspecifiedParts, R>
) -> Result<Key<Self, R>>
Converts a key with unspecified parts into this kind of key. Read more
sourcefn convert_key_ref<R: KeyRole>(
key: &Key<UnspecifiedParts, R>
) -> Result<&Key<Self, R>>
fn convert_key_ref<R: KeyRole>(
key: &Key<UnspecifiedParts, R>
) -> Result<&Key<Self, R>>
Converts a key reference with unspecified parts into this kind of key reference. Read more
sourcefn convert_bundle<R: KeyRole>(
bundle: KeyBundle<UnspecifiedParts, R>
) -> Result<KeyBundle<Self, R>>
fn convert_bundle<R: KeyRole>(
bundle: KeyBundle<UnspecifiedParts, R>
) -> Result<KeyBundle<Self, R>>
Converts a key bundle with unspecified parts into this kind of key bundle. Read more
sourcefn convert_bundle_ref<R: KeyRole>(
bundle: &KeyBundle<UnspecifiedParts, R>
) -> Result<&KeyBundle<Self, R>>
fn convert_bundle_ref<R: KeyRole>(
bundle: &KeyBundle<UnspecifiedParts, R>
) -> Result<&KeyBundle<Self, R>>
Converts a key bundle reference with unspecified parts into this kind of key bundle reference. Read more
sourcefn convert_key_amalgamation<R: KeyRole>(
ka: ComponentAmalgamation<'_, Key<UnspecifiedParts, R>>
) -> Result<ComponentAmalgamation<'_, Key<Self, R>>>
fn convert_key_amalgamation<R: KeyRole>(
ka: ComponentAmalgamation<'_, Key<UnspecifiedParts, R>>
) -> Result<ComponentAmalgamation<'_, Key<Self, R>>>
Converts a key amalgamation with unspecified parts into this kind of key amalgamation. Read more
sourcefn convert_key_amalgamation_ref<'a, R: KeyRole>(
ka: &'a ComponentAmalgamation<'a, Key<UnspecifiedParts, R>>
) -> Result<&'a ComponentAmalgamation<'a, Key<Self, R>>>
fn convert_key_amalgamation_ref<'a, R: KeyRole>(
ka: &'a ComponentAmalgamation<'a, Key<UnspecifiedParts, R>>
) -> Result<&'a ComponentAmalgamation<'a, Key<Self, R>>>
Converts a key amalgamation reference with unspecified parts into this kind of key amalgamation reference. Read more
sourcefn significant_secrets() -> bool
fn significant_secrets() -> bool
Indicates that secret key material should be considered when comparing or hashing this key. Read more
sourceimpl PartialEq<SecretParts> for SecretParts
impl PartialEq<SecretParts> for SecretParts
impl Copy for SecretParts
impl Eq for SecretParts
impl StructuralEq for SecretParts
impl StructuralPartialEq for SecretParts
Auto Trait Implementations
impl RefUnwindSafe for SecretParts
impl Send for SecretParts
impl Sync for SecretParts
impl Unpin for SecretParts
impl UnwindSafe for SecretParts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more