Struct pgp::composed::key::KeyDetails [−][src]
pub struct KeyDetails { /* fields omitted */ }
Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self