pub struct Jwk {
pub kty: String,
pub kid: String,
pub use_: String,
pub alg: Option<String>,
pub n: Option<String>,
pub e: Option<String>,
pub x: Option<String>,
pub y: Option<String>,
pub crv: Option<String>,
}Expand description
JSON Web Key (JWK) structure
Fields§
§kty: StringKey type (e.g., “RSA”, “EC”)
kid: StringKey ID
use_: StringKey use (e.g., “sig”, “enc”)
alg: Option<String>Algorithm (e.g., “RS256”) - optional as per JWT spec
n: Option<String>RSA modulus (for RSA keys)
e: Option<String>RSA public exponent (for RSA keys)
x: Option<String>X coordinate (for EC keys)
y: Option<String>Y coordinate (for EC keys)
crv: Option<String>Curve (for EC keys)
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 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