Struct pgp::composed::signed_key::shared::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
sourceimpl 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
sourceimpl Clone for SignedKeyDetails
impl Clone for SignedKeyDetails
sourcefn clone(&self) -> SignedKeyDetails
fn clone(&self) -> SignedKeyDetails
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 SignedKeyDetails
impl Debug for SignedKeyDetails
sourceimpl PartialEq<SignedKeyDetails> for SignedKeyDetails
impl PartialEq<SignedKeyDetails> for SignedKeyDetails
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SignedKeyDetails) -> bool
fn ne(&self, other: &SignedKeyDetails) -> bool
This method tests for !=
.
sourceimpl Serialize for SignedKeyDetails
impl Serialize for SignedKeyDetails
impl Eq for SignedKeyDetails
impl StructuralEq for SignedKeyDetails
impl StructuralPartialEq for SignedKeyDetails
Auto Trait Implementations
impl RefUnwindSafe for SignedKeyDetails
impl Send for SignedKeyDetails
impl Sync for SignedKeyDetails
impl Unpin for SignedKeyDetails
impl UnwindSafe for SignedKeyDetails
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