Struct dnsimple::dnsimple::oauth::OAuthTokenPayload
source · 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§
source§impl Debug for OAuthTokenPayload
impl Debug for OAuthTokenPayload
source§impl<'de> Deserialize<'de> for OAuthTokenPayload
impl<'de> Deserialize<'de> for OAuthTokenPayload
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