deriv_api_schema/
address.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/kyc_auth_status/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::last_rejected::LastRejected; 
13use crate::status::Status; 
14
15// It's a struct
16/// POA authentication status details.
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct Address {
20    /// Details on the rejected POA attempt.\n
21    // Correct serde attribute construction - Use helper
22    #[serde(skip_serializing_if = "Option::is_none")] 
23    pub last_rejected: Option<LastRejected>,
24    /// Current POA status.\n
25    // Correct serde attribute construction - Use helper
26    #[serde(skip_serializing_if = "Option::is_none")] 
27    pub status: Option<Status>,
28    /// Supported documents per document_type.\n
29    // Correct serde attribute construction - Use helper
30    #[serde(skip_serializing_if = "Option::is_none")] 
31    pub supported_documents: Option<Vec<String>>,
32}
33