Struct openid::biscuit::jwk::JWK[][src]

pub struct JWK<T> {
    pub common: CommonParameters,
    pub algorithm: AlgorithmParameters,
    pub additional: T,
}

A JSON object that represents a cryptographic key. The members of the object represent properties of the key, including its value. Type T is a struct representing additional JWK properties

Fields

common: CommonParameters

Common JWK parameters

algorithm: AlgorithmParameters

Key algorithm specific parameters

additional: T

Additional JWK parameters

Implementations

impl<T> JWK<T> where
    T: Serialize + DeserializeOwned
[src]

pub fn new_octet_key(key: &[u8], additional: T) -> JWK<T>[src]

Convenience to create a new bare-bones Octet key

pub fn clone_without_additional(&self) -> JWK<Empty>[src]

Convenience function to strip out the additional fields

pub fn key_type(&self) -> KeyType[src]

Returns the type of key represented by this key

pub fn octet_key(&self) -> Result<&[u8], Error>[src]

Return the byte sequence of an octet key

Trait Implementations

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

impl<T> Debug for JWK<T> where
    T: Debug
[src]

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

impl<T> Eq for JWK<T> where
    T: Eq
[src]

impl<T> PartialEq<JWK<T>> for JWK<T> where
    T: PartialEq<T>, 
[src]

impl<T> Serialize for JWK<T> where
    T: Serialize
[src]

impl<T> StructuralEq for JWK<T>[src]

impl<T> StructuralPartialEq for JWK<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for JWK<T> where
    T: RefUnwindSafe

impl<T> Send for JWK<T> where
    T: Send

impl<T> Sync for JWK<T> where
    T: Sync

impl<T> Unpin for JWK<T> where
    T: Unpin

impl<T> UnwindSafe for JWK<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.