Struct pgp::composed::signed_key::SignedKeyDetails
source · pub struct SignedKeyDetails {
pub revocation_signatures: Vec<Signature>,
pub direct_signatures: Vec<Signature>,
pub users: Vec<SignedUser>,
pub user_attributes: Vec<SignedUserAttribute>,
}
Expand description
Shared details between secret and public keys.
Fields§
§revocation_signatures: Vec<Signature>
§direct_signatures: Vec<Signature>
§users: Vec<SignedUser>
§user_attributes: Vec<SignedUserAttribute>
Implementations§
source§impl SignedKeyDetails
impl SignedKeyDetails
pub fn new( revocation_signatures: Vec<Signature>, direct_signatures: Vec<Signature>, users: Vec<SignedUser>, user_attributes: Vec<SignedUserAttribute> ) -> Self
sourcepub fn key_expiration_time(&self) -> Option<Duration>
pub fn key_expiration_time(&self) -> Option<Duration>
Get the key expiration time as a duration.
This method finds the signature with the maximum
KeyExpirationTime
offset (which should only occur in
self-signed signatures) and converts it into a duration.
The function returns None
if the key has an infinite
validity.
pub fn verify(&self, key: &impl PublicKeyTrait) -> Result<()>
pub fn as_unsigned(&self) -> KeyDetails
Trait Implementations§
source§impl Clone for SignedKeyDetails
impl Clone for SignedKeyDetails
source§fn clone(&self) -> SignedKeyDetails
fn clone(&self) -> SignedKeyDetails
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 SignedKeyDetails
impl Debug for SignedKeyDetails
source§impl PartialEq for SignedKeyDetails
impl PartialEq for SignedKeyDetails
source§fn eq(&self, other: &SignedKeyDetails) -> bool
fn eq(&self, other: &SignedKeyDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SignedKeyDetails
impl Serialize for SignedKeyDetails
impl Eq for SignedKeyDetails
impl StructuralPartialEq for SignedKeyDetails
Auto Trait Implementations§
impl Freeze for SignedKeyDetails
impl RefUnwindSafe for SignedKeyDetails
impl Send for SignedKeyDetails
impl Sync for SignedKeyDetails
impl Unpin for SignedKeyDetails
impl UnwindSafe for SignedKeyDetails
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