Struct glimesh::AccessToken
source · pub struct AccessToken {
pub access_token: String,
pub refresh_token: Option<String>,
pub created_at: DateTime<Utc>,
pub expires_in: i64,
pub scope: Option<String>,
pub token_type: String,
}
Expand description
Stored information about the access token
Fields§
§access_token: String
Glimesh access token
refresh_token: Option<String>
Glimesh refresh token
created_at: DateTime<Utc>
Time the token was created
expires_in: i64
Seconds after the created_at time when the token expires.
scope: Option<String>
Space separated list of scopes the token has permission for.
token_type: String
Type of the token, usually bearer
Trait Implementations§
source§impl Clone for AccessToken
impl Clone for AccessToken
source§fn clone(&self) -> AccessToken
fn clone(&self) -> AccessToken
Returns a copy 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<'de> Deserialize<'de> for AccessToken
impl<'de> Deserialize<'de> for AccessToken
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more