pub struct IssuedToken {
pub token: String,
pub jti: String,
pub expires_at_unix_secs: u64,
}Expand description
A token minted by an ITokenIssuer.
jti is what ISessionStore::revoke
stores: the login endpoint persists it (or hands it to the client for
revocation), and the authentication middleware rejects the token once the
jti is revoked — no need to wait for expires_at_unix_secs.
Fields§
§token: StringThe serialized token (JWT compact form for the default issuer).
jti: StringRevocation identifier (jti claim) embedded in the token.
expires_at_unix_secs: u64Expiry as a Unix timestamp in seconds (exp claim).
Deliberately not milliseconds (Travel-style expires_at fields are
milliseconds): convert with * 1000 when writing a millisecond column or
returning a millisecond field.
Trait Implementations§
Source§impl Clone for IssuedToken
impl Clone for IssuedToken
Source§fn clone(&self) -> IssuedToken
fn clone(&self) -> IssuedToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssuedToken
impl Debug for IssuedToken
impl Eq for IssuedToken
Source§impl PartialEq for IssuedToken
impl PartialEq for IssuedToken
impl StructuralPartialEq for IssuedToken
Auto Trait Implementations§
impl Forget for IssuedToken
impl Freeze for IssuedToken
impl Move for IssuedToken
impl RefUnwindSafe for IssuedToken
impl Send for IssuedToken
impl Sync for IssuedToken
impl Unpin for IssuedToken
impl UnsafeUnpin for IssuedToken
impl UnwindSafe for IssuedToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.