pub enum KeyOperation {
Decrypt,
DeriveKey,
DeriveBits,
Encrypt,
Sign,
UnwrapKey,
Verify,
WrapKey,
Other(Box<str>),
}Expand description
A valid operation the key was created for. See: RFC7517 4.3
Variants§
Decrypt
Decrypt content.
DeriveKey
Derive Key
DeriveBits
Derive bits not to be used as a key.
Encrypt
Encrypt content.
Sign
Compute digital signature or MAC.
UnwrapKey
Decrypt key.
Verify
Verify digital signature or MAC.
WrapKey
Encrypt key.
Other(Box<str>)
Trait Implementations§
Source§impl Clone for KeyOperation
impl Clone for KeyOperation
Source§fn clone(&self) -> KeyOperation
fn clone(&self) -> KeyOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyOperation
impl Debug for KeyOperation
Source§impl<'de> Deserialize<'de> for KeyOperation
impl<'de> Deserialize<'de> for KeyOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyOperation
Source§impl PartialEq for KeyOperation
impl PartialEq for KeyOperation
Source§impl Serialize for KeyOperation
impl Serialize for KeyOperation
impl StructuralPartialEq for KeyOperation
Auto Trait Implementations§
impl Freeze for KeyOperation
impl RefUnwindSafe for KeyOperation
impl Send for KeyOperation
impl Sync for KeyOperation
impl Unpin for KeyOperation
impl UnsafeUnpin for KeyOperation
impl UnwindSafe for KeyOperation
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