pub struct LoadedCredentials {
pub access_token: String,
pub refresh_token: String,
pub expires_at_ms: i64,
pub persist_path: Option<PathBuf>,
}Expand description
Loaded credentials plus where to persist refreshed tokens (None = don’t).
Fields§
§access_token: StringBearer token.
refresh_token: StringRefresh token (empty when unavailable).
expires_at_ms: i64Bearer expiry as unix millis.
persist_path: Option<PathBuf>File to rewrite after refresh.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LoadedCredentials
impl Freeze for LoadedCredentials
impl RefUnwindSafe for LoadedCredentials
impl Send for LoadedCredentials
impl Sync for LoadedCredentials
impl Unpin for LoadedCredentials
impl UnsafeUnpin for LoadedCredentials
impl UnwindSafe for LoadedCredentials
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