pub struct OAuthInitRequestBody {
pub code_challenge: Option<String>,
pub provider: OAuthProviderId,
pub redirect_to: String,
pub state_code: Option<String>,
pub token: Option<String>,
}Expand description
The request body for initiating an OAuth account.
JSON schema
{
"title": "OAuthInitRequestBody",
"description": "The request body for initiating an OAuth account.",
"type": "object",
"required": [
"provider",
"redirect_to"
],
"properties": {
"code_challenge": {
"type": "string"
},
"provider": {
"$ref": "#/components/schemas/OAuthProviderID"
},
"redirect_to": {
"type": "string"
},
"state_code": {
"type": "string"
},
"token": {
"type": "string"
}
}
}Fields§
§code_challenge: Option<String>§provider: OAuthProviderId§redirect_to: String§state_code: Option<String>§token: Option<String>Trait Implementations§
Source§impl Clone for OAuthInitRequestBody
impl Clone for OAuthInitRequestBody
Source§fn clone(&self) -> OAuthInitRequestBody
fn clone(&self) -> OAuthInitRequestBody
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 OAuthInitRequestBody
impl Debug for OAuthInitRequestBody
Source§impl<'de> Deserialize<'de> for OAuthInitRequestBody
impl<'de> Deserialize<'de> for OAuthInitRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthInitRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthInitRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&OAuthInitRequestBody> for OAuthInitRequestBody
impl From<&OAuthInitRequestBody> for OAuthInitRequestBody
Source§fn from(value: &OAuthInitRequestBody) -> OAuthInitRequestBody
fn from(value: &OAuthInitRequestBody) -> OAuthInitRequestBody
Converts to this type from the input type.
Source§impl Serialize for OAuthInitRequestBody
impl Serialize for OAuthInitRequestBody
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 OAuthInitRequestBody
impl RefUnwindSafe for OAuthInitRequestBody
impl Send for OAuthInitRequestBody
impl Sync for OAuthInitRequestBody
impl Unpin for OAuthInitRequestBody
impl UnwindSafe for OAuthInitRequestBody
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