deriv_api_schema/unsubscribe_email_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/unsubscribe_email/send.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/// It unsubscribe user from the email subscription.
14#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "snake_case")]
16pub struct UnsubscribeEmailRequest {
17 /// Customer User ID.\n
18 // Correct serde attribute construction - Use helper
19
20 pub binary_user_id: f64,
21 /// The generated checksum for the customer.\n
22 // Correct serde attribute construction - Use helper
23
24 pub checksum: String,
25 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
26 // Correct serde attribute construction - Use helper
27 #[serde(skip_serializing_if = "Option::is_none")]
28 pub passthrough: Option<Value>,
29 /// [Optional] Used to map request to response.\n
30 // Correct serde attribute construction - Use helper
31 #[serde(skip_serializing_if = "Option::is_none")]
32 pub req_id: Option<i64>,
33 /// Must be `1`\n
34 // Correct serde attribute construction - Use helper
35
36 pub unsubscribe_email: i64,
37}
38