pub enum XIDPrivateKeyOptions {
Omit,
Include,
Elide,
Encrypt {
method: KeyDerivationMethod,
password: Vec<u8>,
},
}Expand description
Options for handling private keys in envelopes.
Variants§
Omit
Omit the private key from the envelope (default).
Include
Include the private key in plaintext (with salt for decorrelation).
Elide
Include the private key assertion but elide it (maintains digest tree).
Encrypt
Include the private key encrypted with a password using the specified key derivation method.
Trait Implementations§
Source§impl Clone for XIDPrivateKeyOptions
impl Clone for XIDPrivateKeyOptions
Source§fn clone(&self) -> XIDPrivateKeyOptions
fn clone(&self) -> XIDPrivateKeyOptions
Returns a duplicate 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 XIDPrivateKeyOptions
impl Debug for XIDPrivateKeyOptions
Source§impl Default for XIDPrivateKeyOptions
impl Default for XIDPrivateKeyOptions
Source§fn default() -> XIDPrivateKeyOptions
fn default() -> XIDPrivateKeyOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for XIDPrivateKeyOptions
impl PartialEq for XIDPrivateKeyOptions
impl Eq for XIDPrivateKeyOptions
impl StructuralPartialEq for XIDPrivateKeyOptions
Auto Trait Implementations§
impl Freeze for XIDPrivateKeyOptions
impl RefUnwindSafe for XIDPrivateKeyOptions
impl Send for XIDPrivateKeyOptions
impl Sync for XIDPrivateKeyOptions
impl Unpin for XIDPrivateKeyOptions
impl UnwindSafe for XIDPrivateKeyOptions
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more