deriv_api_schema/app_markup_details_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/app_markup_details/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::description::Description;
13use crate::sort::Sort;
14use crate::sort_field_item::SortFieldItem;
15
16/// Retrieve details of `app_markup` according to criteria specified.
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct AppMarkupDetailsRequest {
20 /// [Optional] Specific application `app_id` to report on.\n
21 // Correct serde attribute construction - Use helper
22 #[serde(skip_serializing_if = "Option::is_none")]
23 pub app_id: Option<i64>,
24 /// Must be `1`\n
25 // Correct serde attribute construction - Use helper
26
27 pub app_markup_details: i64,
28 /// [Optional] Specific client loginid to report on, like CR12345\n
29 // Correct serde attribute construction - Use helper
30 #[serde(skip_serializing_if = "Option::is_none")]
31 pub client_loginid: Option<String>,
32 /// Start date (epoch or YYYY-MM-DD HH:MM:SS). Results are inclusive of this time.\n
33 // Correct serde attribute construction - Use helper
34
35 pub date_from: String,
36 /// End date (epoch or YYYY-MM-DD HH::MM::SS). Results are inclusive of this time.\n
37 // Correct serde attribute construction - Use helper
38
39 pub date_to: String,
40 /// [Optional] If set to 1, will return `app_markup` transaction details.\n
41 // Correct serde attribute construction - Use helper
42 #[serde(skip_serializing_if = "Option::is_none")]
43 pub description: Option<Description>,
44 /// [Optional] Apply upper limit to count of transactions received.\n
45 // Correct serde attribute construction - Use helper
46 #[serde(skip_serializing_if = "Option::is_none")]
47 pub limit: Option<f64>,
48 /// [Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
49 // Correct serde attribute construction - Use helper
50 #[serde(skip_serializing_if = "Option::is_none")]
51 pub loginid: Option<String>,
52 /// [Optional] Number of transactions to skip.\n
53 // Correct serde attribute construction - Use helper
54 #[serde(skip_serializing_if = "Option::is_none")]
55 pub offset: Option<i64>,
56 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
57 // Correct serde attribute construction - Use helper
58 #[serde(skip_serializing_if = "Option::is_none")]
59 pub passthrough: Option<Value>,
60 /// [Optional] Used to map request to response.\n
61 // Correct serde attribute construction - Use helper
62 #[serde(skip_serializing_if = "Option::is_none")]
63 pub req_id: Option<i64>,
64 /// [Optional] Sort direction on `transaction_time`. Other fields sort order is ASC.\n
65 // Correct serde attribute construction - Use helper
66 #[serde(skip_serializing_if = "Option::is_none")]
67 pub sort: Option<Sort>,
68 /// [Optional] One or more of the specified fields to sort on. Default sort field is by `transaction_time`.\n
69 // Correct serde attribute construction - Use helper
70 #[serde(skip_serializing_if = "Option::is_none")]
71 pub sort_fields: Option<Vec<SortFieldItem>>,
72}
73