Struct dnsimple::dnsimple::oauth::OAuthTokenPayload[][src]

pub struct OAuthTokenPayload {
    pub client_id: String,
    pub client_secret: String,
    pub code: String,
    pub redirect_uri: String,
    pub state: String,
}
Expand description

Represents the payload used to exchange this information for the access token (AccessToken).

Fields

client_id: String

The client ID you received from DNSimple when you registered the application.

client_secret: String

The client secret you received from DNSimple when you registered the application.

code: String

The code acquired in the previous authorization step.

redirect_uri: String

Only used to validate that it matches the original /oauth/authorize, not used to redirect again.

state: String

The state content originally passed to /oauth/authorize.

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.