#[non_exhaustive]pub struct VerifiedToken {
pub kind: TokenKind,
pub iss: String,
pub dwk: String,
pub sub: String,
pub cnf_jwk: Jwk,
pub iat: i64,
pub exp: i64,
pub claims: Map<String, Value>,
}Expand description
A token whose issuer’s signature verified, bound to the key that signed the request.
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.kind: TokenKindWhich kind it is.
iss: StringIts issuer.
dwk: StringThe metadata document its issuer’s keys were found through.
sub: StringThe agent identifier, or the person’s directed identifier.
cnf_jwk: JwkThe key the token binds, which signed the request.
iat: i64When it was issued.
exp: i64When it expires.
claims: Map<String, Value>Every claim, for those without an accessor.
Implementations§
Trait Implementations§
Source§impl Clone for VerifiedToken
impl Clone for VerifiedToken
Auto Trait Implementations§
impl Freeze for VerifiedToken
impl RefUnwindSafe for VerifiedToken
impl Send for VerifiedToken
impl Sync for VerifiedToken
impl Unpin for VerifiedToken
impl UnsafeUnpin for VerifiedToken
impl UnwindSafe for VerifiedToken
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