pub struct MintedToken {
pub value: String,
pub lifetime: Duration,
}Expand description
A freshly minted bearer token and how long it stays valid.
The client caches the value and re-mints shortly before lifetime
elapses, so a source is free to return a long or short window as suits
it. Apple caps real JWTs at 20 minutes; a static token can claim more.
Fields§
§value: StringThe bearer token string, sent verbatim as Authorization: Bearer.
lifetime: DurationHow long the token remains valid from the moment it was minted.
Implementations§
Trait Implementations§
Source§impl Clone for MintedToken
impl Clone for MintedToken
Auto Trait Implementations§
impl Freeze for MintedToken
impl RefUnwindSafe for MintedToken
impl Send for MintedToken
impl Sync for MintedToken
impl Unpin for MintedToken
impl UnsafeUnpin for MintedToken
impl UnwindSafe for MintedToken
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