deriv_api_schema/
document_type.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/document_upload/send.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
12
13/// Document type
14#[derive(Debug, Clone, Serialize, Deserialize)] // Enums should also derive Serialize/Deserialize
15#[serde(rename_all = "snake_case")]
16pub enum DocumentType {
17    Passport,
18    NationalIdentityCard,
19    IdentificationNumberDocument,
20    ServiceIdCard,
21    DrivingLicence,
22    UtilityBill,
23    Bankstatement,
24    BankStatement,
25    PowerOfAttorney,
26    Amlglobalcheck,
27    Docverification,
28    Proofid,
29    Driverslicense,
30    Proofaddress,
31    Other,
32    VoterCard,
33    StudentCard,
34    NimcSlip,
35    BirthCertificate,
36    PanCard,
37    TaxPhotoId,
38    SelfieWithId,
39    PoiOthers,
40    InsuranceBill,
41    TaxReceipt,
42    PhoneBill,
43    PoaOthers,
44    ProofOfOwnership,
45    TaxReturn,
46    EmploymentContract,
47    Brokerage_Statement,
48    Payslip,
49    EddOthers,
50    Coi,
51    BusinessPoa,
52    ArticleOfAssociation,
53    Memorandum,
54    AuthorisationLetter,
55    Declarations,
56    Affidavit,
57    OfficialLetter,
58    RentalAgreement,
59    BusinessDocumentsOthers,
60}
61
62// Optional: Derive Default for enums, defaulting to the first variant? Or require explicit handling?
63// For now, DO NOT derive Default for enums automatically. Structs needing them must handle it.
64
65/* // Example: Deriving Default for Enum (use with caution)
66impl Default for DocumentType {
67    fn default() -> Self {
68        // Default to the first variant found
69        Self::Passport
70    }
71}
72*/
73