pub struct AuthData {
    pub access_token: String,
    pub refresh_token: Option<String>,
    pub expiry_time: Option<DateTime<Utc>>,
}Fields
access_token: Stringrefresh_token: Option<String>expiry_time: Option<DateTime<Utc>>The timestamp the access token expires in.
Implementations
sourceimpl AuthData
 
impl AuthData
pub fn about_to_expire(&self) -> bool
pub fn update(&mut self, response: AuthResponse)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AuthData
impl Send for AuthData
impl Sync for AuthData
impl Unpin for AuthData
impl UnwindSafe for AuthData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more