pub struct Mt5PasswordResetRequest {
pub login: String,
pub loginid: Option<String>,
pub mt5_password_reset: i64,
pub new_password: String,
pub passthrough: Option<Value>,
pub password_type: Option<PasswordType>,
pub req_id: Option<i64>,
pub verification_code: String,
}
Expand description
To reset the password of MT5 account.
Fields§
§login: String
MT5 user login\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
mt5_password_reset: i64
Must be 1
\n
new_password: String
New password of the account. For validation (Accepts any printable ASCII character. Must be within 8-25 characters, and include numbers, lowercase and uppercase letters. Must not be the same as the user’s email address).\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
password_type: Option<PasswordType>
[Optional] Type of the password to reset.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
verification_code: String
Email verification code (received from a verify_email
call, which must be done first)\n
Trait Implementations§
Source§impl Clone for Mt5PasswordResetRequest
impl Clone for Mt5PasswordResetRequest
Source§fn clone(&self) -> Mt5PasswordResetRequest
fn clone(&self) -> Mt5PasswordResetRequest
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 Mt5PasswordResetRequest
impl Debug for Mt5PasswordResetRequest
Source§impl<'de> Deserialize<'de> for Mt5PasswordResetRequest
impl<'de> Deserialize<'de> for Mt5PasswordResetRequest
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
Auto Trait Implementations§
impl Freeze for Mt5PasswordResetRequest
impl RefUnwindSafe for Mt5PasswordResetRequest
impl Send for Mt5PasswordResetRequest
impl Sync for Mt5PasswordResetRequest
impl Unpin for Mt5PasswordResetRequest
impl UnwindSafe for Mt5PasswordResetRequest
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