pub struct TokenSet {
pub access_token: String,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub expires_at: Option<u64>,
pub scope: Option<String>,
}Expand description
Token bundle returned by OAuthConfig::exchange_code_full. Stored
on the matching Account row so refresh_token is available for
silent re-auth and expires_at is checked before each provider call.
Fields§
§access_token: String§refresh_token: Option<String>§id_token: Option<String>§expires_at: Option<u64>Unix epoch seconds at which the access token expires. None when
the provider didn’t return expires_in (GitHub’s classic OAuth
app tokens are non-expiring).
scope: Option<String>Trait Implementations§
impl Eq for TokenSet
impl StructuralPartialEq for TokenSet
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