Enum biscuit::jwk::KeyOperations
[−]
[src]
pub enum KeyOperations { Sign, Verify, Encrypt, Decrypt, WrapKey, UnwrapKey, DeriveKey, DeriveBits, Other(String), }
Operations that the key is intended to be used for. This enum is serialized untagged
Variants
Sign
Computer digitial signature or MAC
Verify
Verify digital signature or MAC
Encrypt
Encrypt content
Decrypt
Decrypt content and validate decryption, if applicable
WrapKey
Encrypt key
UnwrapKey
Decrypt key and validate decryption, if applicable
DeriveKey
Derive key
DeriveBits
Derive bits not to be used as a key
Other(String)
Other operation
Trait Implementations
impl Clone for KeyOperations
[src]
fn clone(&self) -> KeyOperations
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for KeyOperations
[src]
impl Eq for KeyOperations
[src]
impl PartialEq for KeyOperations
[src]
fn eq(&self, __arg_0: &KeyOperations) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &KeyOperations) -> bool
This method tests for !=
.
impl Serialize for KeyOperations
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for KeyOperations
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more