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>where F: FnOnce() -> String + Clone,
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<KeyDetails> for KeyDetails
impl PartialEq<KeyDetails> 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 ==
.