deriv_api_schema/
p2p_settings_response.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/p2p_settings/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
12use crate::p2p_settings::P2pSettings;
13use crate::subscription::Subscription;
14
15/// Information of the P2P settings.
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct P2pSettingsResponse {
19    /// Echo of the request made.\n
20    // Correct serde attribute construction - Use helper
21    
22    pub echo_req: Value,
23    /// Action name of the request made.\n
24    // Correct serde attribute construction - Use helper
25    
26    pub msg_type: String,
27    /// Peer-to-peer payment system settings.\n
28    // Correct serde attribute construction - Use helper
29    #[serde(skip_serializing_if = "Option::is_none")] 
30    pub p2p_settings: Option<P2pSettings>,
31    /// Optional field sent in request to map to response, present only when request contains `req_id`.\n
32    // Correct serde attribute construction - Use helper
33    #[serde(skip_serializing_if = "Option::is_none")] 
34    pub req_id: Option<i64>,
35    /// For subscription requests only.\n
36    // Correct serde attribute construction - Use helper
37    #[serde(skip_serializing_if = "Option::is_none")] 
38    pub subscription: Option<Subscription>,
39}
40