pub struct AuthData {
pub access_token: String,
pub refresh_token: Option<String>,
pub expiry_time: Option<DateTime<Utc>>,
}
Fields§
§access_token: String
§refresh_token: Option<String>
§expiry_time: Option<DateTime<Utc>>
The timestamp the access token expires in.
Implementations§
Source§impl AuthData
impl AuthData
pub fn about_to_expire(&self) -> bool
pub fn update(&mut self, response: AuthResponse)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthData
impl RefUnwindSafe for AuthData
impl Send for AuthData
impl Sync for AuthData
impl Unpin for AuthData
impl UnwindSafe for AuthData
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