Struct pgp::composed::key::SecretSubkey
source · pub struct SecretSubkey { /* private fields */ }
Implementations§
source§impl SecretSubkey
impl SecretSubkey
pub fn new(key: SecretSubkey, keyflags: KeyFlags) -> Self
pub fn sign<F>( self, sec_key: &impl SecretKeyTrait, key_pw: F ) -> Result<SignedSecretSubKey>where F: FnOnce() -> String + Clone,
Trait Implementations§
source§impl Clone for SecretSubkey
impl Clone for SecretSubkey
source§fn clone(&self) -> SecretSubkey
fn clone(&self) -> SecretSubkey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecretSubkey
impl Debug for SecretSubkey
source§impl KeyTrait for SecretSubkey
impl KeyTrait for SecretSubkey
source§impl PartialEq<SecretSubkey> for SecretSubkey
impl PartialEq<SecretSubkey> for SecretSubkey
source§fn eq(&self, other: &SecretSubkey) -> bool
fn eq(&self, other: &SecretSubkey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.