deriv_api_schema/poi_status.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/mt5_login_list/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/// Status of proof of identity (POI).
14#[derive(Debug, Clone, Serialize, Deserialize)] // Enums should also derive Serialize/Deserialize
15#[serde(rename_all = "snake_case")]
16pub enum PoiStatus {
17 None,
18 Pending,
19 Verified,
20 Suspected,
21 Rejected,
22 Expired,
23}
24
25// Optional: Derive Default for enums, defaulting to the first variant? Or require explicit handling?
26// For now, DO NOT derive Default for enums automatically. Structs needing them must handle it.
27
28/* // Example: Deriving Default for Enum (use with caution)
29impl Default for PoiStatus {
30 fn default() -> Self {
31 // Default to the first variant found
32 Self::None
33 }
34}
35*/
36