pub struct TokenSet {
pub access_token: String,
pub refresh_token: Option<String>,
pub expires_in: u64,
}Expand description
OIDC tokens returned by any login flow (device flow or auth-code loopback).
Debug is hand-written so token material never lands in logs, panics, or {:?} output.
Fields§
§access_token: String§refresh_token: Option<String>§expires_in: u64Access-token lifetime in seconds (0 if the IdP omitted it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenSet
impl RefUnwindSafe for TokenSet
impl Send for TokenSet
impl Sync for TokenSet
impl Unpin for TokenSet
impl UnsafeUnpin for TokenSet
impl UnwindSafe for TokenSet
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