deriv_api_schema/
identity.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; 
14use crate::supported_document_item::SupportedDocumentItem; 
15use crate::service::Service; 
16
17// It's a struct
18/// POI authentication status details.
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(rename_all = "snake_case")]
21pub struct Identity {
22    /// Available services for the next POI attempt.\n
23    // Correct serde attribute construction - Use helper
24    #[serde(skip_serializing_if = "Option::is_none")] 
25    pub available_services: Option<Vec<String>>,
26    /// Details on the rejected POI attempt.\n
27    // Correct serde attribute construction - Use helper
28    #[serde(skip_serializing_if = "Option::is_none")] 
29    pub last_rejected: Option<LastRejected>,
30    /// Service used for the current POI status.\n
31    // Correct serde attribute construction - Use helper
32    #[serde(skip_serializing_if = "Option::is_none")] 
33    pub service: Option<Service>,
34    /// Current POI status.\n
35    // Correct serde attribute construction - Use helper
36    #[serde(skip_serializing_if = "Option::is_none")] 
37    pub status: Option<Status>,
38    /// Supported documents.\n
39    // Correct serde attribute construction - Use helper
40    #[serde(skip_serializing_if = "Option::is_none")] 
41    pub supported_documents: Option<Vec<SupportedDocumentItem>>,
42}
43