deriv_api_schema/
rights.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/mt5_login_list/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7
8
9
10
11// Import shared types from the *same* crate
12
13// It's a struct
14/// Rights assigned to the MT5 account.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct Rights {
18    /// User is allowed to connect via MT5 Web API\n
19    // Correct serde attribute construction - Use helper
20    #[serde(skip_serializing_if = "Option::is_none")] 
21    pub api: Option<bool>,
22    /// This flag is obsolete and not used\n
23    // Correct serde attribute construction - Use helper
24    #[serde(skip_serializing_if = "Option::is_none")] 
25    pub api_deprecated: Option<bool>,
26    /// User's certificate is confirmed\n
27    // Correct serde attribute construction - Use helper
28    #[serde(skip_serializing_if = "Option::is_none")] 
29    pub confirmed: Option<bool>,
30    /// The User is allowed to connect\n
31    // Correct serde attribute construction - Use helper
32    #[serde(skip_serializing_if = "Option::is_none")] 
33    pub enabled: Option<bool>,
34    /// User is not allowed to view reports\n
35    // Correct serde attribute construction - Use helper
36    #[serde(skip_serializing_if = "Option::is_none")] 
37    pub exclude_reports: Option<bool>,
38    /// User is allowed to use Expert Advisors\n
39    // Correct serde attribute construction - Use helper
40    #[serde(skip_serializing_if = "Option::is_none")] 
41    pub expert: Option<bool>,
42    /// For internal mt5 usage\n
43    // Correct serde attribute construction - Use helper
44    #[serde(skip_serializing_if = "Option::is_none")] 
45    pub investor: Option<bool>,
46    /// User is allowed to use OTP\n
47    // Correct serde attribute construction - Use helper
48    #[serde(skip_serializing_if = "Option::is_none")] 
49    pub otp_enabled: Option<bool>,
50    /// User is allowed to change password\n
51    // Correct serde attribute construction - Use helper
52    #[serde(skip_serializing_if = "Option::is_none")] 
53    pub password_change: Option<bool>,
54    /// User has enabled push notifications\n
55    // Correct serde attribute construction - Use helper
56    #[serde(skip_serializing_if = "Option::is_none")] 
57    pub push: Option<bool>,
58    /// Value for internal mt5 usage\n
59    // Correct serde attribute construction - Use helper
60    #[serde(skip_serializing_if = "Option::is_none")] 
61    pub readonly: Option<bool>,
62    /// User is allowed to receive daily reports\n
63    // Correct serde attribute construction - Use helper
64    #[serde(skip_serializing_if = "Option::is_none")] 
65    pub reports: Option<bool>,
66    /// User must change password during next connection\n
67    // Correct serde attribute construction - Use helper
68    #[serde(skip_serializing_if = "Option::is_none")] 
69    pub reset_pass: Option<bool>,
70    /// VPS is enabled for user\n
71    // Correct serde attribute construction - Use helper
72    #[serde(skip_serializing_if = "Option::is_none")] 
73    pub sponsored: Option<bool>,
74    /// User can view technical accounts in manager/admin terminal\n
75    // Correct serde attribute construction - Use helper
76    #[serde(skip_serializing_if = "Option::is_none")] 
77    pub technical: Option<bool>,
78    /// Trading is disabled for user\n
79    // Correct serde attribute construction - Use helper
80    #[serde(skip_serializing_if = "Option::is_none")] 
81    pub trade_disabled: Option<bool>,
82    /// User is allowed to use trailing stops\n
83    // Correct serde attribute construction - Use helper
84    #[serde(skip_serializing_if = "Option::is_none")] 
85    pub trailing: Option<bool>,
86}
87