pub struct TokenOutput<'a> {
pub access_token: &'a str,
pub id_token: &'a str,
pub token_expiry: DateTime<Utc>,
}Expand description
Output returned by the library to the user after successful authentication.
This structure is printed as JSON and includes only the fields necessary for downstream use (access, identity, and expiration).
Fields§
§access_token: &'a strOAuth 2.0 access token
id_token: &'a strID token (JWT) identifying the user
token_expiry: DateTime<Utc>UTC expiry timestamp
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TokenOutput<'a>
impl<'a> RefUnwindSafe for TokenOutput<'a>
impl<'a> Send for TokenOutput<'a>
impl<'a> Sync for TokenOutput<'a>
impl<'a> Unpin for TokenOutput<'a>
impl<'a> UnwindSafe for TokenOutput<'a>
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