pub struct Mt5PasswordChangeRequest {
pub login: String,
pub loginid: Option<String>,
pub mt5_password_change: i64,
pub new_password: String,
pub old_password: String,
pub passthrough: Option<Value>,
pub password_type: Option<PasswordType>,
pub req_id: Option<i64>,
}
Expand description
To change passwords of the 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_change: 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
old_password: String
Old password for validation (non-empty string, accepts any printable ASCII character)\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 change.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for Mt5PasswordChangeRequest
impl Clone for Mt5PasswordChangeRequest
Source§fn clone(&self) -> Mt5PasswordChangeRequest
fn clone(&self) -> Mt5PasswordChangeRequest
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 Mt5PasswordChangeRequest
impl Debug for Mt5PasswordChangeRequest
Source§impl<'de> Deserialize<'de> for Mt5PasswordChangeRequest
impl<'de> Deserialize<'de> for Mt5PasswordChangeRequest
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 Mt5PasswordChangeRequest
impl RefUnwindSafe for Mt5PasswordChangeRequest
impl Send for Mt5PasswordChangeRequest
impl Sync for Mt5PasswordChangeRequest
impl Unpin for Mt5PasswordChangeRequest
impl UnwindSafe for Mt5PasswordChangeRequest
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