Enum pgp::types::SecretParams
source · pub enum SecretParams {
Plain(PlainSecretParams),
Encrypted(EncryptedSecretParams),
}
Expand description
A list of params that are used to represent the values of possibly encrypted key, from imports and exports.
Variants§
Plain(PlainSecretParams)
Encrypted(EncryptedSecretParams)
Implementations§
source§impl SecretParams
impl SecretParams
pub fn is_encrypted(&self) -> bool
pub fn from_slice( data: &[u8], alg: PublicKeyAlgorithm, params: &PublicParams, ) -> Result<Self>
pub fn string_to_key_id(&self) -> u8
pub fn checksum(&self) -> Vec<u8> ⓘ
Trait Implementations§
source§impl Clone for SecretParams
impl Clone for SecretParams
source§fn clone(&self) -> SecretParams
fn clone(&self) -> SecretParams
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 SecretParams
impl Debug for SecretParams
source§impl PartialEq for SecretParams
impl PartialEq for SecretParams
source§impl Serialize for SecretParams
impl Serialize for SecretParams
source§impl Zeroize for SecretParams
impl Zeroize for SecretParams
impl Eq for SecretParams
impl StructuralPartialEq for SecretParams
Auto Trait Implementations§
impl Freeze for SecretParams
impl RefUnwindSafe for SecretParams
impl Send for SecretParams
impl Sync for SecretParams
impl Unpin for SecretParams
impl UnwindSafe for SecretParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)