pub enum JsonWebKey {
RS256 {
kty: String,
n: String,
e: String,
},
}Expand description
JWK Define the structure of each key type that are retrieved from the jwks uri
Variants§
RS256
A RSA Key of 256 bits
Trait Implementations§
Source§impl Debug for JsonWebKey
impl Debug for JsonWebKey
Source§impl<'de> Deserialize<'de> for JsonWebKey
impl<'de> Deserialize<'de> for JsonWebKey
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
Source§impl From<JsonWebKey> for SigningKey
impl From<JsonWebKey> for SigningKey
Implementation of the From trait for the SigningKey enum to convert the JsonWebKey into
the SigningKey enum
Source§fn from(key: JsonWebKey) -> Self
fn from(key: JsonWebKey) -> Self
Function that converts the JsonWebKey into the SigningKey enum
Auto Trait Implementations§
impl Freeze for JsonWebKey
impl RefUnwindSafe for JsonWebKey
impl Send for JsonWebKey
impl Sync for JsonWebKey
impl Unpin for JsonWebKey
impl UnwindSafe for JsonWebKey
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