pub struct LoginRequest {
pub captcha_token: String,
pub email: String,
pub password: String,
}Expand description
LoginRequest
JSON schema
{
"title": "LoginRequest",
"type": "object",
"required": [
"captcha_token",
"email",
"password"
],
"properties": {
"captcha_token": {
"title": "Captcha Token",
"type": "string"
},
"email": {
"title": "Email",
"type": "string",
"format": "email"
},
"password": {
"title": "Password",
"type": "string"
}
}
}Fields§
§captcha_token: String§email: String§password: StringImplementations§
Source§impl LoginRequest
impl LoginRequest
pub fn builder() -> LoginRequest
Trait Implementations§
Source§impl Clone for LoginRequest
impl Clone for LoginRequest
Source§fn clone(&self) -> LoginRequest
fn clone(&self) -> LoginRequest
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 LoginRequest
impl Debug for LoginRequest
Source§impl<'de> Deserialize<'de> for LoginRequest
impl<'de> Deserialize<'de> for LoginRequest
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<&LoginRequest> for LoginRequest
impl From<&LoginRequest> for LoginRequest
Source§fn from(value: &LoginRequest) -> Self
fn from(value: &LoginRequest) -> Self
Converts to this type from the input type.
Source§impl From<LoginRequest> for LoginRequest
impl From<LoginRequest> for LoginRequest
Source§fn from(value: LoginRequest) -> Self
fn from(value: LoginRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for LoginRequest
impl Serialize for LoginRequest
Source§impl TryFrom<LoginRequest> for LoginRequest
impl TryFrom<LoginRequest> for LoginRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LoginRequest) -> Result<Self, ConversionError>
fn try_from(value: LoginRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LoginRequest
impl RefUnwindSafe for LoginRequest
impl Send for LoginRequest
impl Sync for LoginRequest
impl Unpin for LoginRequest
impl UnwindSafe for LoginRequest
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