pub struct KeyUsage {
pub sign: bool,
pub certify: bool,
pub encrypt: bool,
pub authenticate: bool,
}Expand description
Key capabilities parsed from GPG’s capability field.
Derived from the lowercase letters in the --with-colons capability field
(field 12), which describe what the key itself can do.
Fields§
§sign: bool§certify: bool§encrypt: bool§authenticate: boolTrait Implementations§
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl Freeze for KeyUsage
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnsafeUnpin for KeyUsage
impl UnwindSafe for KeyUsage
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