deriv_api_schema/
client_kyc_status.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/mt5_login_list/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7
8
9
10
11// Import shared types from the *same* crate
12use crate::poa_status::PoaStatus; 
13use crate::valid_tin::ValidTin; 
14use crate::poi_status::PoiStatus; 
15
16// It's a struct
17/// [Optional] Pertains to client KYC. Returned only if the client fails to meet the requirements, including proof of identity (POI), validity of the tax identification number (TIN), and proof of address (POA).
18#[derive(Debug, Clone, Serialize, Deserialize)]
19#[serde(rename_all = "snake_case")]
20pub struct ClientKycStatus {
21    /// Status of proof of address (POA).\n
22    // Correct serde attribute construction - Use helper
23    #[serde(skip_serializing_if = "Option::is_none")] 
24    pub poa_status: Option<PoaStatus>,
25    /// Status of proof of identity (POI).\n
26    // Correct serde attribute construction - Use helper
27    #[serde(skip_serializing_if = "Option::is_none")] 
28    pub poi_status: Option<PoiStatus>,
29    /// Indicates whether the tax identification number (TIN) is valid (1) or not (0).\n
30    // Correct serde attribute construction - Use helper
31    #[serde(skip_serializing_if = "Option::is_none")] 
32    pub valid_tin: Option<ValidTin>,
33}
34