pub trait Key {
// Required methods
fn user_id_names(&self) -> Vec<String>;
fn fingerprint(&self) -> Result<[u8; 20]>;
fn is_not_usable(&self) -> bool;
}
Expand description
Models the interactions that can be done on a pgp key
Required Methods§
sourcefn user_id_names(&self) -> Vec<String>
fn user_id_names(&self) -> Vec<String>
returns a list of names associated with the key
sourcefn fingerprint(&self) -> Result<[u8; 20]>
fn fingerprint(&self) -> Result<[u8; 20]>
returns the keys fingerprint
sourcefn is_not_usable(&self) -> bool
fn is_not_usable(&self) -> bool
returns if the key isn’t usable