#[non_exhaustive]pub struct SignIn {
pub access_token: SecretString,
pub refresh_token: Option<SecretString>,
pub expires_in: u64,
pub refresh_expires_at: Option<i64>,
pub scope: Option<String>,
pub account: SignedInAccount,
}Expand description
A finished sign-in: Commit’s tokens and the account they belong to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_token: SecretStringAccess token for the Commit API (Authorization: Bearer …).
refresh_token: Option<SecretString>Rotating refresh token (sar_…); store the newest one before using it.
expires_in: u64Seconds until the access token expires, counted from when the answer arrived.
refresh_expires_at: Option<i64>When the sign-in ends however often it is refreshed (unix seconds), when known.
scope: Option<String>Space-separated details the account shared with Commit (profile, email, …).
account: SignedInAccountWho signed in.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignIn
impl RefUnwindSafe for SignIn
impl Send for SignIn
impl Sync for SignIn
impl Unpin for SignIn
impl UnsafeUnpin for SignIn
impl UnwindSafe for SignIn
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