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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.