deriv_api_schema/tax.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
12
13// It's a struct
14/// Tax configuration
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct Tax {
18 /// Mandatory TIN flag\n
19 // Correct serde attribute construction - Use helper
20 #[serde(skip_serializing_if = "Option::is_none")]
21 pub mandatory: Option<bool>,
22 /// POI equivalent flag\n
23 // Correct serde attribute construction - Use helper
24 #[serde(skip_serializing_if = "Option::is_none")]
25 pub poi_equivalent: Option<bool>,
26 /// Cleanup regex\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub tin_cleaner: Option<String>,
30 /// Country tax identifier format\n
31 // Correct serde attribute construction - Use helper
32 #[serde(skip_serializing_if = "Option::is_none")]
33 pub tin_format: Option<Vec<String>>,
34 /// Description of the TIN format\n
35 // Correct serde attribute construction - Use helper
36 #[serde(skip_serializing_if = "Option::is_none")]
37 pub tin_format_description: Option<Value>,
38}
39