pub struct AuthenticateWithEmailRequestBody {
pub code: AuthenticateWithEmailRequestBodyCode,
pub email: String,
pub mode: Option<AuthenticateWithEmailRequestBodyMode>,
}Expand description
AuthenticateWithEmailRequestBody
JSON schema
{
"title": "AuthenticateWithEmailRequestBody",
"type": "object",
"required": [
"code",
"email"
],
"properties": {
"code": {
"type": "string",
"maxLength": 6,
"minLength": 6
},
"email": {
"type": "string",
"format": "email"
},
"mode": {
"type": "string",
"enum": [
"login-or-sign-up",
"no-signup"
]
}
}
}Fields§
§code: AuthenticateWithEmailRequestBodyCode§email: String§mode: Option<AuthenticateWithEmailRequestBodyMode>Trait Implementations§
Source§impl Clone for AuthenticateWithEmailRequestBody
impl Clone for AuthenticateWithEmailRequestBody
Source§fn clone(&self) -> AuthenticateWithEmailRequestBody
fn clone(&self) -> AuthenticateWithEmailRequestBody
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<'de> Deserialize<'de> for AuthenticateWithEmailRequestBody
impl<'de> Deserialize<'de> for AuthenticateWithEmailRequestBody
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<&AuthenticateWithEmailRequestBody> for AuthenticateWithEmailRequestBody
impl From<&AuthenticateWithEmailRequestBody> for AuthenticateWithEmailRequestBody
Source§fn from(value: &AuthenticateWithEmailRequestBody) -> Self
fn from(value: &AuthenticateWithEmailRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthenticateWithEmailRequestBody
impl RefUnwindSafe for AuthenticateWithEmailRequestBody
impl Send for AuthenticateWithEmailRequestBody
impl Sync for AuthenticateWithEmailRequestBody
impl Unpin for AuthenticateWithEmailRequestBody
impl UnwindSafe for AuthenticateWithEmailRequestBody
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