deriv_api_schema/
supported_document_item.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::additional::Additional; 
13use crate::available_service_item::AvailableServiceItem; 
14
15// It's a struct
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct SupportedDocumentItem {
19    /// Additional information required by the document type.\n
20    // Correct serde attribute construction - Use helper
21    #[serde(skip_serializing_if = "Option::is_none")] 
22    pub additional: Option<Additional>,
23    /// Services that support this document type and the specific name expected by the service.\n
24    // Correct serde attribute construction - Use helper
25    #[serde(skip_serializing_if = "Option::is_none")] 
26    pub available_services: Option<Vec<AvailableServiceItem>>,
27    /// Display name of the document type.\n
28    // Correct serde attribute construction - Use helper
29    #[serde(skip_serializing_if = "Option::is_none")] 
30    pub display_name: Option<String>,
31    /// The document type.\n
32    // Correct serde attribute construction - Use helper
33    #[serde(skip_serializing_if = "Option::is_none")] 
34    pub document_type: Option<String>,
35    /// Example format.\n
36    // Correct serde attribute construction - Use helper
37    #[serde(skip_serializing_if = "Option::is_none")] 
38    pub example_format: Option<String>,
39    /// Document format.\n
40    // Correct serde attribute construction - Use helper
41    #[serde(skip_serializing_if = "Option::is_none")] 
42    pub format: Option<String>,
43    /// A flag to indicate if the document has a visual sample.\n
44    // Correct serde attribute construction - Use helper
45    #[serde(skip_serializing_if = "Option::is_none")] 
46    pub has_visual_sample: Option<bool>,
47    /// Flag to indicate if the document expires or not. Documents that expire have an expiration date\n
48    // Correct serde attribute construction - Use helper
49    #[serde(skip_serializing_if = "Option::is_none")] 
50    pub lifetime_valid: Option<bool>,
51    /// Document sides.\n
52    // Correct serde attribute construction - Use helper
53    #[serde(skip_serializing_if = "Option::is_none")] 
54    pub sides: Option<Vec<String>>,
55}
56