pub struct Key {
pub fingerprint: String,
pub uid: String,
pub created: Option<NaiveDate>,
pub expires: Option<NaiveDate>,
pub validity: KeyValidity,
pub key_type: KeyType,
pub usage: KeyUsage,
pub subkeys: Vec<Subkey>,
}Expand description
A GPG key from the pacman keyring.
Fields§
§fingerprint: String§uid: String§created: Option<NaiveDate>§expires: Option<NaiveDate>§validity: KeyValidity§key_type: KeyType§usage: KeyUsageCapabilities of the primary key itself (sign/certify/encrypt/auth).
subkeys: Vec<Subkey>Subkeys attached to this primary key.
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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