pub struct JWTClaims {
pub headers: Value,
pub claims: Value,
}
Expand description
All claims defined in a JWT.
This is created and returned to the caller upon successful validation. The claims present do vary, and the caller knows best what fields to expect, so this struct simply contains a copy of the parsed JSON fields.
Fields§
§headers: Value
JOSE header fields of the JWTs, see RFC7519
claims: Value
Claims (fields) found in the JWT. What fields are present depends on the purpose of the JWT. For OpenID Connect ID tokens see here
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for JWTClaims
impl Send for JWTClaims
impl Sync for JWTClaims
impl Unpin for JWTClaims
impl UnwindSafe for JWTClaims
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