Struct gpgme_sys::_gpgme_key
source · #[repr(C)]pub struct _gpgme_key {
pub bitfield: u32,
pub protocol: gpgme_protocol_t,
pub issuer_serial: *mut c_char,
pub issuer_name: *mut c_char,
pub chain_id: *mut c_char,
pub owner_trust: gpgme_validity_t,
pub subkeys: gpgme_subkey_t,
pub uids: gpgme_user_id_t,
pub keylist_mode: gpgme_keylist_mode_t,
pub fpr: *mut c_char,
pub last_update: c_ulong,
/* private fields */
}
Fields
bitfield: u32
protocol: gpgme_protocol_t
issuer_serial: *mut c_char
issuer_name: *mut c_char
chain_id: *mut c_char
owner_trust: gpgme_validity_t
subkeys: gpgme_subkey_t
uids: gpgme_user_id_t
keylist_mode: gpgme_keylist_mode_t
fpr: *mut c_char
last_update: c_ulong
Implementations
sourceimpl _gpgme_key
impl _gpgme_key
pub fn revoked(&self) -> bool
pub fn expired(&self) -> bool
pub fn disabled(&self) -> bool
pub fn invalid(&self) -> bool
pub fn can_encrypt(&self) -> bool
pub fn can_sign(&self) -> bool
pub fn can_certify(&self) -> bool
pub fn secret(&self) -> bool
pub fn can_authenticate(&self) -> bool
pub fn is_qualified(&self) -> bool
pub fn origin(&self) -> u32
Trait Implementations
sourceimpl Clone for _gpgme_key
impl Clone for _gpgme_key
sourcefn clone(&self) -> _gpgme_key
fn clone(&self) -> _gpgme_key
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 moreimpl Copy for _gpgme_key
Auto Trait Implementations
impl RefUnwindSafe for _gpgme_key
impl !Send for _gpgme_key
impl !Sync for _gpgme_key
impl Unpin for _gpgme_key
impl UnwindSafe for _gpgme_key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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