Struct sequoia_openpgp::packet::key::PublicParts
source · pub struct PublicParts;
Expand description
A marker that indicates that a Key
should be treated like a
public key.
Note: this doesn’t indicate whether the data structure contains
secret key material; it indicates whether any secret key material
should be ignored. For instance, when exporting a key with the
PublicParts
marker, secret key material will not be exported.
See the documentation for Key
for a demonstration.
Refer to KeyParts
for details.
Trait Implementations§
source§impl Clone for PublicParts
impl Clone for PublicParts
source§fn clone(&self) -> PublicParts
fn clone(&self) -> PublicParts
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 PublicParts
impl Debug for PublicParts
source§impl Hash for PublicParts
impl Hash for PublicParts
source§impl KeyParts for PublicParts
impl KeyParts for PublicParts
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn significant_secrets() -> bool
fn significant_secrets() -> bool
Indicates that secret key material should be considered when
comparing or hashing this key.
source§impl PartialEq for PublicParts
impl PartialEq for PublicParts
source§fn eq(&self, other: &PublicParts) -> bool
fn eq(&self, other: &PublicParts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PublicParts
impl Eq for PublicParts
impl StructuralPartialEq for PublicParts
Auto Trait Implementations§
impl Freeze for PublicParts
impl RefUnwindSafe for PublicParts
impl Send for PublicParts
impl Sync for PublicParts
impl Unpin for PublicParts
impl UnwindSafe for PublicParts
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)