deriv_api_schema/residence_list_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/residence_list/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
12use crate::query_item::QueryItem;
13
14/// This call returns a list of countries and 2-letter country codes, suitable for populating the account opening form.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct ResidenceListRequest {
18 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
19 // Correct serde attribute construction - Use helper
20 #[serde(skip_serializing_if = "Option::is_none")]
21 pub passthrough: Option<Value>,
22 /// [Optional] Specific keys from the response that you want. If not passed, it will return all the keys.\n
23 // Correct serde attribute construction - Use helper
24 #[serde(skip_serializing_if = "Option::is_none")]
25 pub query: Option<Vec<QueryItem>>,
26 /// [Optional] Used to map request to response.\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub req_id: Option<i64>,
30 /// Field 'residence_list' mapped to Value due to complexity/potential issues.\n
31 // Correct serde attribute construction - Use helper
32
33 pub residence_list: Value,
34}
35