deriv_api_schema/
residence_list_item.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/residence_list/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::jurisdiction_risk_assessment::JurisdictionRiskAssessment; 
13use crate::identity::Identity; 
14use crate::partner_signup::PartnerSignup; 
15use crate::common_reporting_standard::CommonReportingStandard; 
16use crate::account_opening_self_declaration_required::AccountOpeningSelfDeclarationRequired; 
17
18// It's a struct
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(rename_all = "snake_case")]
21pub struct ResidenceListItem {
22    /// Flag which indicates whether self declaration is required for account opening\n
23    // Correct serde attribute construction - Use helper
24    #[serde(skip_serializing_if = "Option::is_none")] 
25    pub account_opening_self_declaration_required: Option<AccountOpeningSelfDeclarationRequired>,
26    /// Common Reporting Standard\n
27    // Correct serde attribute construction - Use helper
28    #[serde(skip_serializing_if = "Option::is_none")] 
29    pub common_reporting_standard: Option<CommonReportingStandard>,
30    /// Disabled.\n
31    // Correct serde attribute construction - Use helper
32    #[serde(skip_serializing_if = "Option::is_none")] 
33    pub disabled: Option<String>,
34    /// Information about identity options available\n
35    // Correct serde attribute construction - Use helper
36    #[serde(skip_serializing_if = "Option::is_none")] 
37    pub identity: Option<Identity>,
38    /// Jurisdiction Risk Assessment\n
39    // Correct serde attribute construction - Use helper
40    #[serde(skip_serializing_if = "Option::is_none")] 
41    pub jurisdiction_risk_assessment: Option<JurisdictionRiskAssessment>,
42    /// Flag which indicates whether partner signup is available in this country\n
43    // Correct serde attribute construction - Use helper
44    #[serde(skip_serializing_if = "Option::is_none")] 
45    pub partner_signup: Option<PartnerSignup>,
46    /// IDD code of country\n
47    // Correct serde attribute construction - Use helper
48    #[serde(skip_serializing_if = "Option::is_none")] 
49    pub phone_idd: Option<Value>,
50    /// Selected.\n
51    // Correct serde attribute construction - Use helper
52    #[serde(skip_serializing_if = "Option::is_none")] 
53    pub selected: Option<String>,
54    /// Country full name\n
55    // Correct serde attribute construction - Use helper
56    #[serde(skip_serializing_if = "Option::is_none")] 
57    pub text: Option<String>,
58    /// Country tax identifier format\n
59    // Correct serde attribute construction - Use helper
60    #[serde(skip_serializing_if = "Option::is_none")] 
61    pub tin_format: Option<Vec<String>>,
62    /// 2-letter country code\n
63    // Correct serde attribute construction - Use helper
64    #[serde(skip_serializing_if = "Option::is_none")] 
65    pub value: Option<String>,
66    /// Flag which indicates whether wallet signup is available in this country\n
67    // Correct serde attribute construction - Use helper
68    #[serde(skip_serializing_if = "Option::is_none")] 
69    pub wallet_signup: Option<i64>,
70}
71