deriv_api_schema/legal_requirements.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::compliance_requirements::ComplianceRequirements;
13use crate::after_first_deposit_requirements::AfterFirstDepositRequirements;
14
15// It's a struct
16/// Legal requirements for the Landing Company
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct LegalRequirements {
20 /// After first deposit requirements\n
21 // Correct serde attribute construction - Use helper
22 #[serde(skip_serializing_if = "Option::is_none")]
23 pub after_first_deposit: Option<AfterFirstDepositRequirements>,
24 /// Compliance requirements\n
25 // Correct serde attribute construction - Use helper
26 #[serde(skip_serializing_if = "Option::is_none")]
27 pub compliance: Option<ComplianceRequirements>,
28 /// Field 'partner' mapped to Value due to complexity/potential issues.\n
29 // Correct serde attribute construction - Use helper
30 #[serde(skip_serializing_if = "Option::is_none")]
31 pub partner: Option<Value>,
32 /// Field 'signup' mapped to Value due to complexity/potential issues.\n
33 // Correct serde attribute construction - Use helper
34 #[serde(skip_serializing_if = "Option::is_none")]
35 pub signup: Option<Value>,
36 /// Field 'withdrawal' mapped to Value due to complexity/potential issues.\n
37 // Correct serde attribute construction - Use helper
38 #[serde(skip_serializing_if = "Option::is_none")]
39 pub withdrawal: Option<Value>,
40}
41