#[non_exhaustive]pub struct ValidatedJwt<T = JwtClaims> {
pub header: JwsHeader,
pub claims: T,
pub key: Jwk,
pub key_reference: KeyReference,
}Expand description
A JWT that passed JwtValidator::validate: its header, its claims and the key that signed
it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.header: JwsHeaderThe JWS header.
claims: TThe claims, as a JwtClaims set or the type JwtValidator::validate_as read them
into.
key: JwkThe public key that verified the signature.
key_reference: KeyReferenceWhere the header said the key was.
Trait Implementations§
Source§impl<T: Clone> Clone for ValidatedJwt<T>
impl<T: Clone> Clone for ValidatedJwt<T>
Auto Trait Implementations§
impl<T> Freeze for ValidatedJwt<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValidatedJwt<T>where
T: RefUnwindSafe,
impl<T> Send for ValidatedJwt<T>where
T: Send,
impl<T> Sync for ValidatedJwt<T>where
T: Sync,
impl<T> Unpin for ValidatedJwt<T>where
T: Unpin,
impl<T> UnsafeUnpin for ValidatedJwt<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ValidatedJwt<T>where
T: UnwindSafe,
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