pub struct LoginSchema {
pub login: String,
pub password: String,
pub undelete: Option<bool>,
pub captcha_key: Option<String>,
pub login_source: Option<String>,
pub gift_code_sku_id: Option<String>,
}Expand description
A struct that represents a well-formed login request.
§Arguments
Please use new() to create a new instance of this struct.
§Errors
You will receive a FieldFormatError, if:
- The username is not between 2 and 32 characters.
- The password is not between 1 and 72 characters.
Fields§
§login: String§password: String§undelete: Option<bool>§captcha_key: Option<String>§login_source: Option<String>§gift_code_sku_id: Option<String>Implementations§
Source§impl LoginSchema
impl LoginSchema
Sourcepub fn new(
login: String,
password: String,
undelete: Option<bool>,
captcha_key: Option<String>,
login_source: Option<String>,
gift_code_sku_id: Option<String>,
) -> Result<LoginSchema, FieldFormatError>
pub fn new( login: String, password: String, undelete: Option<bool>, captcha_key: Option<String>, login_source: Option<String>, gift_code_sku_id: Option<String>, ) -> Result<LoginSchema, FieldFormatError>
Returns a new Result<LoginSchema, FieldFormatError>.
§Arguments
login: The username you want to login with. password: The password you want to login with. undelete: Honestly no idea what this is for. captcha_key: The captcha key you want to login with. login_source: The login source. gift_code_sku_id: The gift code sku id.
§Errors
You will receive a FieldFormatError, if:
- The username is less than 2 or more than 32 characters in length
Trait Implementations§
Source§impl Debug for LoginSchema
impl Debug for LoginSchema
Source§impl<'de> Deserialize<'de> for LoginSchema
impl<'de> Deserialize<'de> for LoginSchema
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 PartialEq for LoginSchema
impl PartialEq for LoginSchema
Source§impl Serialize for LoginSchema
impl Serialize for LoginSchema
impl Eq for LoginSchema
impl StructuralPartialEq for LoginSchema
Auto Trait Implementations§
impl Freeze for LoginSchema
impl RefUnwindSafe for LoginSchema
impl Send for LoginSchema
impl Sync for LoginSchema
impl Unpin for LoginSchema
impl UnwindSafe for LoginSchema
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