deriv_api_schema/mt5_deposit_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/mt5_deposit/send.json
4
5// Use direct crate names for imports
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import required types from the *same* crate
12
13/// This call allows deposit into MT5 account from Binary account.
14#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "snake_case")]
16pub struct Mt5DepositRequest {
17 /// Amount to deposit (in the currency of from_binary); min = $1 or an equivalent amount, max = $20000 or an equivalent amount\n
18 // Correct serde attribute construction - Use helper
19 #[serde(skip_serializing_if = "Option::is_none")]
20 pub amount: Option<String>,
21 /// Binary account loginid to transfer money from\n
22 // Correct serde attribute construction - Use helper
23 #[serde(skip_serializing_if = "Option::is_none")]
24 pub from_binary: Option<String>,
25 /// [Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
26 // Correct serde attribute construction - Use helper
27 #[serde(skip_serializing_if = "Option::is_none")]
28 pub loginid: Option<String>,
29 /// Must be `1`\n
30 // Correct serde attribute construction - Use helper
31
32 pub mt5_deposit: i64,
33 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
34 // Correct serde attribute construction - Use helper
35 #[serde(skip_serializing_if = "Option::is_none")]
36 pub passthrough: Option<Value>,
37 /// [Optional] Used to map request to response.\n
38 // Correct serde attribute construction - Use helper
39 #[serde(skip_serializing_if = "Option::is_none")]
40 pub req_id: Option<i64>,
41 /// MT5 account login to deposit money to\n
42 // Correct serde attribute construction - Use helper
43
44 pub to_mt5: String,
45}
46