deriv_api_schema/
query_item.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/residence_list/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/// Keys that you need back in response.
14#[derive(Debug, Clone, Serialize, Deserialize)] // Enums should also derive Serialize/Deserialize
15#[serde(rename_all = "snake_case")]
16pub enum QueryItem {
17    AccountOpeningSelfDeclarationRequired,
18    CommonReportingStandard,
19    Disabled,
20    Identity,
21    JurisdictionRiskAssessment,
22    PhoneIdd,
23    Selected,
24    Text,
25    TinFormat,
26    Value,
27    WalletSignup,
28}
29
30// Optional: Derive Default for enums, defaulting to the first variant? Or require explicit handling?
31// For now, DO NOT derive Default for enums automatically. Structs needing them must handle it.
32
33/* // Example: Deriving Default for Enum (use with caution)
34impl Default for QueryItem {
35    fn default() -> Self {
36        // Default to the first variant found
37        Self::AccountOpeningSelfDeclarationRequired
38    }
39}
40*/
41