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
sourceimpl SecretParams
impl SecretParams
pub fn is_encrypted(&self) -> bool
pub fn from_slice(data: &[u8], alg: PublicKeyAlgorithm) -> Result<Self>
pub fn string_to_key_id(&self) -> u8
pub fn compare_checksum(&self, other: Option<&[u8]>) -> Result<()>
pub fn checksum(&self) -> Option<Vec<u8>>
Trait Implementations
sourceimpl Clone for SecretParams
impl Clone for SecretParams
sourcefn clone(&self) -> SecretParams
fn clone(&self) -> SecretParams
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 more
sourceimpl Debug for SecretParams
impl Debug for SecretParams
sourceimpl PartialEq<SecretParams> for SecretParams
impl PartialEq<SecretParams> for SecretParams
sourcefn eq(&self, other: &SecretParams) -> bool
fn eq(&self, other: &SecretParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SecretParams) -> bool
fn ne(&self, other: &SecretParams) -> bool
This method tests for !=
.
sourceimpl Serialize for SecretParams
impl Serialize for SecretParams
sourceimpl Zeroize for SecretParams
impl Zeroize for SecretParams
impl Eq for SecretParams
impl StructuralEq for SecretParams
impl StructuralPartialEq for SecretParams
Auto Trait Implementations
impl RefUnwindSafe for SecretParams
impl Send for SecretParams
impl Sync for SecretParams
impl Unpin for SecretParams
impl UnwindSafe for SecretParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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