deriv_api_schema/
account_type.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/transfer_between_accounts/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
12
13/// Type of the account.
14#[derive(Debug, Clone, Serialize, Deserialize)] // Enums should also derive Serialize/Deserialize
15#[serde(rename_all = "snake_case")]
16pub enum AccountType {
17    Binary,
18    Crypto,
19    Ctrader,
20    Doughflow,
21    Dxtrade,
22    Mt5,
23    P2p,
24    Paymentagent,
25    PaymentagentClient,
26    Standard,
27    Virtual,
28    Partner,
29}
30
31// Optional: Derive Default for enums, defaulting to the first variant? Or require explicit handling?
32// For now, DO NOT derive Default for enums automatically. Structs needing them must handle it.
33
34/* // Example: Deriving Default for Enum (use with caution)
35impl Default for AccountType {
36    fn default() -> Self {
37        // Default to the first variant found
38        Self::Binary
39    }
40}
41*/
42