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 with RS256 algorithm
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
Source§fn from(key: JsonWebKey) -> Self
fn from(key: JsonWebKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonWebKey
impl RefUnwindSafe for JsonWebKey
impl Send for JsonWebKey
impl Sync for JsonWebKey
impl Unpin for JsonWebKey
impl UnsafeUnpin 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