deriv_api_schema/
landing_company_info.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/landing_company/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7use serde_json::Value;
8
9
10
11// Import shared types from the *same* crate
12use crate::legal_requirements::LegalRequirements; 
13use crate::support_professional_client::SupportProfessionalClient; 
14use crate::client_kyc_status_requirements::ClientKycStatusRequirements; 
15use crate::has_reality_check::HasRealityCheck; 
16use crate::tin_not_mandatory::TinNotMandatory; 
17
18// It's a struct
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(rename_all = "snake_case")]
21pub struct LandingCompanyInfo {
22    /// Landing Company address\n
23    // Correct serde attribute construction - Use helper
24    #[serde(skip_serializing_if = "Option::is_none")] 
25    pub address: Option<Vec<String>>,
26    /// Special conditions for changing sensitive fields\n
27    // Correct serde attribute construction - Use helper
28    #[serde(skip_serializing_if = "Option::is_none")] 
29    pub changeable_fields: Option<Value>,
30    /// Client kyc statusequirements\n
31    // Correct serde attribute construction - Use helper
32    #[serde(skip_serializing_if = "Option::is_none")] 
33    pub client_kyc_status: Option<ClientKycStatusRequirements>,
34    /// Landing Company country of incorporation\n
35    // Correct serde attribute construction - Use helper
36    #[serde(skip_serializing_if = "Option::is_none")] 
37    pub country: Option<String>,
38    /// The configuration of each currency.\n
39    // Correct serde attribute construction - Use helper
40    #[serde(skip_serializing_if = "Option::is_none")] 
41    pub currency_config: Option<Value>,
42    /// Flag to indicate whether reality check is applicable for this Landing Company. `1`: applicable, `0`: not applicable. The Reality Check is a feature that gives a summary of the client's trades and account balances on a regular basis throughout his session, and is a regulatory requirement for certain Landing Companies.\n
43    // Correct serde attribute construction - Use helper
44    #[serde(skip_serializing_if = "Option::is_none")] 
45    pub has_reality_check: Option<HasRealityCheck>,
46    /// Allowed contract types\n
47    // Correct serde attribute construction - Use helper
48    #[serde(skip_serializing_if = "Option::is_none")] 
49    pub legal_allowed_contract_categories: Option<Vec<String>>,
50    /// Allowable currencies\n
51    // Correct serde attribute construction - Use helper
52    #[serde(skip_serializing_if = "Option::is_none")] 
53    pub legal_allowed_currencies: Option<Vec<String>>,
54    /// Allowable markets\n
55    // Correct serde attribute construction - Use helper
56    #[serde(skip_serializing_if = "Option::is_none")] 
57    pub legal_allowed_markets: Option<Vec<String>>,
58    /// Default account currency\n
59    // Correct serde attribute construction - Use helper
60    #[serde(skip_serializing_if = "Option::is_none")] 
61    pub legal_default_currency: Option<String>,
62    /// Landing Company legal name\n
63    // Correct serde attribute construction - Use helper
64    #[serde(skip_serializing_if = "Option::is_none")] 
65    pub name: Option<String>,
66    /// Legal requirements for the Landing Company\n
67    // Correct serde attribute construction - Use helper
68    #[serde(skip_serializing_if = "Option::is_none")] 
69    pub requirements: Option<LegalRequirements>,
70    /// Landing Company short code\n
71    // Correct serde attribute construction - Use helper
72    #[serde(skip_serializing_if = "Option::is_none")] 
73    pub shortcode: Option<String>,
74    /// Flag that indicates whether the landing company supports professional accounts or not\n
75    // Correct serde attribute construction - Use helper
76    #[serde(skip_serializing_if = "Option::is_none")] 
77    pub support_professional_client: Option<SupportProfessionalClient>,
78    /// Flag that indicates whether tax identifier number is not mandatory for the current country and landing company.\n
79    // Correct serde attribute construction - Use helper
80    #[serde(skip_serializing_if = "Option::is_none")] 
81    pub tin_not_mandatory: Option<TinNotMandatory>,
82}
83