Struct pretty_good::Key
[−]
[src]
pub struct Key { pub creation_time: Duration, pub pubkey_algorithm: PublicKeyAlgorithm, pub key_material: KeyMaterial, pub encryption_method: Option<KeyEncryptionMethod>, pub privkey_checksum: Option<Vec<u8>>, // some fields omitted }
Fields
creation_time: Duration
pubkey_algorithm: PublicKeyAlgorithm
key_material: KeyMaterial
encryption_method: Option<KeyEncryptionMethod>
privkey_checksum: Option<Vec<u8>>
Methods
impl Key
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<Key, Error>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
pub fn expiration_time(&self) -> Option<Duration>
[src]
pub fn fingerprint(&self) -> Result<Vec<u8>, Error>
[src]
pub fn id(&self) -> Result<u64, Error>
[src]
Trait Implementations
impl Clone for Key
[src]
fn clone(&self) -> Key
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more