Struct pgp::composed::signed_key::shared::SignedKeyDetails [−][src]
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
pub fn new(
revocation_signatures: Vec<Signature>,
direct_signatures: Vec<Signature>,
users: Vec<SignedUser>,
user_attributes: Vec<SignedUserAttribute>
) -> Self
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.
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 SignedKeyDetails
impl Send for SignedKeyDetails
impl Sync for SignedKeyDetails
impl Unpin for SignedKeyDetails
impl UnwindSafe for SignedKeyDetails
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self