Struct oxide_auth::code_grant::accesstoken::TokenResponse [−][src]
pub struct TokenResponse {
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub token_type: Option<String>,
pub expires_in: Option<i64>,
pub scope: Option<String>,
pub error: Option<String>,
}Expand description
Token Response
Fields
access_token: Option<String>The access token issued by the authorization server.
refresh_token: Option<String>The refresh token, which can be used to obtain new access tokens.
token_type: Option<String>The type of the token issued.
expires_in: Option<i64>The lifetime in seconds of the access token.
scope: Option<String>The scope, which limits the permissions on the access token.
error: Option<String>Error code
Trait Implementations
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