pub struct OAuthLinkRequestBody {
pub authorization_code: String,
pub code_type: Option<OAuthLinkRequestBodyCodeType>,
pub code_verifier: Option<OAuthLinkRequestBodyCodeVerifier>,
pub state_code: String,
}Expand description
The request body for linking an OAuth account.
JSON schema
{
"title": "OAuthLinkRequestBody",
"description": "The request body for linking 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
},
"state_code": {
"type": "string"
}
}
}Fields§
§code_type: Option<OAuthLinkRequestBodyCodeType>§code_verifier: Option<OAuthLinkRequestBodyCodeVerifier>§state_code: StringTrait Implementations§
Source§impl Clone for OAuthLinkRequestBody
impl Clone for OAuthLinkRequestBody
Source§fn clone(&self) -> OAuthLinkRequestBody
fn clone(&self) -> OAuthLinkRequestBody
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 OAuthLinkRequestBody
impl Debug for OAuthLinkRequestBody
Source§impl<'de> Deserialize<'de> for OAuthLinkRequestBody
impl<'de> Deserialize<'de> for OAuthLinkRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthLinkRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthLinkRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&OAuthLinkRequestBody> for OAuthLinkRequestBody
impl From<&OAuthLinkRequestBody> for OAuthLinkRequestBody
Source§fn from(value: &OAuthLinkRequestBody) -> OAuthLinkRequestBody
fn from(value: &OAuthLinkRequestBody) -> OAuthLinkRequestBody
Converts to this type from the input type.
Source§impl Serialize for OAuthLinkRequestBody
impl Serialize for OAuthLinkRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OAuthLinkRequestBody
impl RefUnwindSafe for OAuthLinkRequestBody
impl Send for OAuthLinkRequestBody
impl Sync for OAuthLinkRequestBody
impl Unpin for OAuthLinkRequestBody
impl UnwindSafe for OAuthLinkRequestBody
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