pub struct OAuthAuthenticateRequestBody {
pub authorization_code: String,
pub code_type: Option<OAuthAuthenticateRequestBodyCodeType>,
pub code_verifier: Option<OAuthAuthenticateRequestBodyCodeVerifier>,
pub mode: Option<OAuthAuthenticateRequestBodyMode>,
pub state_code: String,
}Expand description
The request body for authenticating an OAuth account.
JSON schema
{
"title": "OAuthAuthenticateRequestBody",
"description": "The request body for authenticating an OAuth account.",
"type": "object",
"required": [
"authorization_code",
"state_code"
],
"properties": {
"authorization_code": {
"type": "string"
},
"code_type": {
"type": "string",
"enum": [
"raw"
]
},
"code_verifier": {
"type": "string",
"maxLength": 128,
"minLength": 43
},
"mode": {
"type": "string",
"enum": [
"login-or-sign-up",
"no-signup"
]
},
"state_code": {
"type": "string"
}
}
}Fields§
§code_type: Option<OAuthAuthenticateRequestBodyCodeType>§code_verifier: Option<OAuthAuthenticateRequestBodyCodeVerifier>§mode: Option<OAuthAuthenticateRequestBodyMode>§state_code: StringTrait Implementations§
Source§impl Clone for OAuthAuthenticateRequestBody
impl Clone for OAuthAuthenticateRequestBody
Source§fn clone(&self) -> OAuthAuthenticateRequestBody
fn clone(&self) -> OAuthAuthenticateRequestBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuthAuthenticateRequestBody
impl Debug for OAuthAuthenticateRequestBody
Source§impl<'de> Deserialize<'de> for OAuthAuthenticateRequestBody
impl<'de> Deserialize<'de> for OAuthAuthenticateRequestBody
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<&OAuthAuthenticateRequestBody> for OAuthAuthenticateRequestBody
impl From<&OAuthAuthenticateRequestBody> for OAuthAuthenticateRequestBody
Source§fn from(value: &OAuthAuthenticateRequestBody) -> Self
fn from(value: &OAuthAuthenticateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthAuthenticateRequestBody
impl RefUnwindSafe for OAuthAuthenticateRequestBody
impl Send for OAuthAuthenticateRequestBody
impl Sync for OAuthAuthenticateRequestBody
impl Unpin for OAuthAuthenticateRequestBody
impl UnsafeUnpin for OAuthAuthenticateRequestBody
impl UnwindSafe for OAuthAuthenticateRequestBody
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