deriv_api_schema/trading_platform_password_reset_response.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/trading_platform_password_reset/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::trading_platform_password_reset::TradingPlatformPasswordReset;
13
14/// The result of the Trading Platform password reset.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct TradingPlatformPasswordResetResponse {
18 /// Echo of the request made.\n
19 // Correct serde attribute construction - Use helper
20
21 pub echo_req: Value,
22 /// Action name of the request made.\n
23 // Correct serde attribute construction - Use helper
24
25 pub msg_type: String,
26 /// Optional field sent in request to map to response, present only when request contains `req_id`.\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub req_id: Option<i64>,
30 /// If set to 1, the password has been reset.\n
31 // Correct serde attribute construction - Use helper
32 #[serde(skip_serializing_if = "Option::is_none")]
33 pub trading_platform_password_reset: Option<TradingPlatformPasswordReset>,
34}
35