deriv_api_schema/cashier_one_of_sub1.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/cashier/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import shared types from the *same* crate
12use crate::action::Action;
13use crate::deposit::Deposit;
14
15// It's a struct
16/// Response for type `api'.
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct CashierOneOfSub1 {
20 /// Type of operation, which is requested.\n
21 // Correct serde attribute construction - Use helper
22
23 pub action: Action,
24 /// [Optional] Result for `deposit` action.\n
25 // Correct serde attribute construction - Use helper
26 #[serde(skip_serializing_if = "Option::is_none")]
27 pub deposit: Option<Deposit>,
28 /// [Optional] Result for `withdraw` action.\n
29 // Correct serde attribute construction - Use helper
30 #[serde(skip_serializing_if = "Option::is_none")]
31 pub withdraw: Option<Value>,
32}
33