deriv_api_schema/common_reporting_standard.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::non_participating_jurisdictions::NonParticipatingJurisdictions;
13
14// It's a struct
15/// Common Reporting Standard
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct CommonReportingStandard {
19 /// NPJ configuration\n
20 // Correct serde attribute construction - Use helper
21 #[serde(skip_serializing_if = "Option::is_none")]
22 pub non_participating_jurisdictions: Option<NonParticipatingJurisdictions>,
23 /// Field 'postcode' mapped to Value due to complexity/potential issues.\n
24 // Correct serde attribute construction - Use helper
25 #[serde(skip_serializing_if = "Option::is_none")]
26 pub postcode: Option<Value>,
27 /// Field 'tax' mapped to Value due to complexity/potential issues.\n
28 // Correct serde attribute construction - Use helper
29 #[serde(skip_serializing_if = "Option::is_none")]
30 pub tax: Option<Value>,
31}
32