[][src]Enum biscuit::jwk::KeyOperations

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 PartialEq<KeyOperations> for KeyOperations[src]

impl Clone for KeyOperations[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for KeyOperations[src]

impl Debug for KeyOperations[src]

impl Serialize for KeyOperations[src]

impl<'de> Deserialize<'de> for KeyOperations[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]