[][src]Struct open_api_hydra::models::oauth_token_response::OauthTokenResponse

pub struct OauthTokenResponse {
    pub access_token: Option<String>,
    pub expires_in: Option<i64>,
    pub id_token: Option<i64>,
    pub refresh_token: Option<String>,
    pub scope: Option<i64>,
    pub token_type: Option<String>,
}

OauthTokenResponse : The token response

Fields

access_token: Option<String>

The access token issued by the authorization server.

expires_in: Option<i64>

The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.

id_token: Option<i64>

To retrieve a refresh token request the id_token scope.

refresh_token: Option<String>

The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope "offline" to your access token request.

scope: Option<i64>

The scope of the access token

token_type: Option<String>

The type of the token issued

Implementations

impl OauthTokenResponse[src]

pub fn new() -> OauthTokenResponse[src]

The token response

Trait Implementations

impl Clone for OauthTokenResponse[src]

impl Debug for OauthTokenResponse[src]

impl<'de> Deserialize<'de> for OauthTokenResponse[src]

impl PartialEq<OauthTokenResponse> for OauthTokenResponse[src]

impl Serialize for OauthTokenResponse[src]

impl StructuralPartialEq for OauthTokenResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.