[][src]Struct jsonwebkey::JsonWebKey

pub struct JsonWebKey {
    pub key: Box<Key>,
    pub key_use: Option<KeyUse>,
    pub key_ops: KeyOps,
    pub key_id: Option<String>,
    pub algorithm: Option<Algorithm>,
}

Fields

key: Box<Key>key_use: Option<KeyUse>key_ops: KeyOpskey_id: Option<String>algorithm: Option<Algorithm>

Implementations

impl JsonWebKey[src]

pub fn new(key: Key) -> Self[src]

pub fn set_algorithm(&mut self, alg: Algorithm) -> Result<(), Error>[src]

pub fn from_slice(bytes: impl AsRef<[u8]>) -> Result<Self, Error>[src]

Trait Implementations

impl Debug for JsonWebKey[src]

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

impl Display for JsonWebKey[src]

impl Eq for JsonWebKey[src]

impl FromStr for JsonWebKey[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<JsonWebKey> for JsonWebKey[src]

impl Serialize for JsonWebKey[src]

impl StructuralEq for JsonWebKey[src]

impl StructuralPartialEq for JsonWebKey[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.