pub struct KeyDetails { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for KeyDetails
impl Clone for KeyDetails
sourcefn clone(&self) -> KeyDetails
fn clone(&self) -> KeyDetails
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 KeyDetails
impl Debug for KeyDetails
sourceimpl PartialEq<KeyDetails> for KeyDetails
impl PartialEq<KeyDetails> for KeyDetails
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &KeyDetails) -> bool
fn ne(&self, other: &KeyDetails) -> bool
This method tests for !=
.
impl Eq for KeyDetails
impl StructuralEq 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
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