pub struct Tokens {
pub id_token: String,
pub access_token: String,
pub refresh_token: String,
pub expires_at: Instant,
}Expand description
Authentication tokens returned from login.
Fields§
§id_token: StringID token (JWT with user claims)
access_token: StringAccess token for API requests
refresh_token: StringRefresh token for obtaining new access tokens
expires_at: InstantToken expiration time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tokens
impl RefUnwindSafe for Tokens
impl Send for Tokens
impl Sync for Tokens
impl Unpin for Tokens
impl UnsafeUnpin for Tokens
impl UnwindSafe for Tokens
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