pub struct Jwk {
pub kty: String,
pub kid: Option<String>,
pub alg: Option<String>,
pub key_use: Option<String>,
pub n: Option<String>,
pub e: Option<String>,
pub x5c: Vec<String>,
}Expand description
JSON Web Key.
Fields§
§kty: StringKey type (e.g., “RSA”)
kid: Option<String>Key ID (used to match with JWT header)
alg: Option<String>Algorithm (e.g., “RS256”)
key_use: Option<String>Intended use (e.g., “sig” for signature)
n: Option<String>RSA modulus (base64url encoded)
e: Option<String>RSA exponent (base64url encoded)
x5c: Vec<String>X.509 certificate chain
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Jwk
impl<'de> Deserialize<'de> for Jwk
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
Auto Trait Implementations§
impl Freeze for Jwk
impl RefUnwindSafe for Jwk
impl Send for Jwk
impl Sync for Jwk
impl Unpin for Jwk
impl UnsafeUnpin for Jwk
impl UnwindSafe for Jwk
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