Struct pgp::composed::key::KeyDetails
source · pub struct KeyDetails { /* private fields */ }
Implementations§
source§impl KeyDetails
impl KeyDetails
pub fn new( primary_user_id: UserId, user_ids: Vec<UserId>, user_attributes: Vec<UserAttribute>, keyflags: KeyFlags, preferred_symmetric_algorithms: SmallVec<[SymmetricKeyAlgorithm; 8]>, preferred_hash_algorithms: SmallVec<[HashAlgorithm; 8]>, preferred_compression_algorithms: SmallVec<[CompressionAlgorithm; 8]>, revocation_key: Option<RevocationKey> ) -> Self
pub fn sign<F>( self, key: &impl SecretKeyTrait, key_pw: F ) -> Result<SignedKeyDetails>
Trait Implementations§
source§impl Clone for KeyDetails
impl Clone for KeyDetails
source§fn clone(&self) -> KeyDetails
fn clone(&self) -> KeyDetails
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 KeyDetails
impl Debug for KeyDetails
source§impl PartialEq for KeyDetails
impl PartialEq for KeyDetails
source§fn eq(&self, other: &KeyDetails) -> bool
fn eq(&self, other: &KeyDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyDetails
impl StructuralPartialEq for KeyDetails
Auto Trait Implementations§
impl RefUnwindSafe for KeyDetails
impl Send for KeyDetails
impl Sync for KeyDetails
impl Unpin for KeyDetails
impl UnwindSafe for KeyDetails
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