pub struct OAuthTokenAuthorizationCodeRequestBody {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub code: String,
pub grant_type: OAuthTokenAuthorizationCodeRequestBodyGrantType,
pub redirect_uri: Option<String>,
}Expand description
Request body for the authorization_code grant type.
JSON schema
{
"title": "OAuthTokenAuthorizationCodeRequestBody",
"description": "Request body for the authorization_code grant type.",
"type": "object",
"required": [
"code",
"grant_type"
],
"properties": {
"client_id": {
"description": "The client ID. Alternative to Basic auth header.",
"type": "string"
},
"client_secret": {
"description": "The client secret. Alternative to Basic auth
header.",
"type": "string"
},
"code": {
"description": "The authorization code received from the
authorization endpoint.",
"type": "string"
},
"grant_type": {
"type": "string",
"enum": [
"authorization_code"
]
},
"redirect_uri": {
"description": "The redirect URI used in the authorization
request.",
"type": "string"
}
},
"x-stainless-model":
"client_auth.oauth_token_authorization_code_request_body"
}Fields§
§client_id: Option<String>The client ID. Alternative to Basic auth header.
client_secret: Option<String>The client secret. Alternative to Basic auth header.
code: StringThe authorization code received from the authorization endpoint.
grant_type: OAuthTokenAuthorizationCodeRequestBodyGrantType§redirect_uri: Option<String>The redirect URI used in the authorization request.
Trait Implementations§
Source§impl Clone for OAuthTokenAuthorizationCodeRequestBody
impl Clone for OAuthTokenAuthorizationCodeRequestBody
Source§fn clone(&self) -> OAuthTokenAuthorizationCodeRequestBody
fn clone(&self) -> OAuthTokenAuthorizationCodeRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for OAuthTokenAuthorizationCodeRequestBody
impl<'de> Deserialize<'de> for OAuthTokenAuthorizationCodeRequestBody
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
Source§impl From<&OAuthTokenAuthorizationCodeRequestBody> for OAuthTokenAuthorizationCodeRequestBody
impl From<&OAuthTokenAuthorizationCodeRequestBody> for OAuthTokenAuthorizationCodeRequestBody
Source§fn from(value: &OAuthTokenAuthorizationCodeRequestBody) -> Self
fn from(value: &OAuthTokenAuthorizationCodeRequestBody) -> Self
Converts to this type from the input type.
Source§impl From<OAuthTokenAuthorizationCodeRequestBody> for OAuthTokenRequestBody
impl From<OAuthTokenAuthorizationCodeRequestBody> for OAuthTokenRequestBody
Source§fn from(value: OAuthTokenAuthorizationCodeRequestBody) -> Self
fn from(value: OAuthTokenAuthorizationCodeRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthTokenAuthorizationCodeRequestBody
impl RefUnwindSafe for OAuthTokenAuthorizationCodeRequestBody
impl Send for OAuthTokenAuthorizationCodeRequestBody
impl Sync for OAuthTokenAuthorizationCodeRequestBody
impl Unpin for OAuthTokenAuthorizationCodeRequestBody
impl UnsafeUnpin for OAuthTokenAuthorizationCodeRequestBody
impl UnwindSafe for OAuthTokenAuthorizationCodeRequestBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more