pub struct AccessToken {
pub expires_at: i64,
pub scope: Vec<String>,
pub token: String,
}Expand description
API access token.
Fields§
§expires_at: i64Timestamp in milliseconds when the token expires.
scope: Vec<String>§token: StringImplementations§
Source§impl AccessToken
impl AccessToken
Sourcepub fn has_expired(&self) -> bool
pub fn has_expired(&self) -> bool
Return true if the access token has expired.
Trait Implementations§
Source§impl Clone for AccessToken
impl Clone for AccessToken
Source§fn clone(&self) -> AccessToken
fn clone(&self) -> AccessToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessToken
impl Debug for AccessToken
Source§impl From<AccessTokenResponse> for AccessToken
impl From<AccessTokenResponse> for AccessToken
Source§fn from(response: AccessTokenResponse) -> Self
fn from(response: AccessTokenResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnwindSafe for AccessToken
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