deriv_api_schema/cashier_response.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
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import required types from the *same* crate
12
13/// Cashier information for the specified type.
14#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "snake_case")]
16pub struct CashierResponse {
17 /// Possible error codes are:\n/// - `ASK_TNC_APPROVAL`: API call `tnc_approval`\n/// - `ASK_AUTHENTICATE`\n/// - `ASK_UK_FUNDS_PROTECTION`: API call `tnc_approval`\n/// - `ASK_CURRENCY`: API call `set_account_currency`\n/// - `ASK_EMAIL_VERIFY`: API call `verify_email`\n/// - `ASK_FIX_DETAILS`: API call `set_settings`\n
18 // Correct serde attribute construction - Use helper
19 #[serde(skip_serializing_if = "Option::is_none")]
20 pub cashier: Option<Value>,
21 /// Echo of the request made.\n
22 // Correct serde attribute construction - Use helper
23
24 pub echo_req: Value,
25 /// Action name of the request made.\n
26 // Correct serde attribute construction - Use helper
27
28 pub msg_type: String,
29 /// Optional field sent in request to map to response, present only when request contains `req_id`.\n
30 // Correct serde attribute construction - Use helper
31 #[serde(skip_serializing_if = "Option::is_none")]
32 pub req_id: Option<i64>,
33}
34