Skip to main content

binance_sdk/spot/rest_api/models/
order_oco_response.rs

1/*
2 * Spot REST API
3 *
4 * Access market data, manage accounts, and trade on Binance Spot.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 *
9 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10 * https://openapi-generator.tech
11 * Do not edit the class manually.
12 */
13
14#![allow(unused_imports)]
15use crate::spot::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct OrderOcoResponse {
20    #[serde(rename = "orderListId", skip_serializing_if = "Option::is_none")]
21    pub order_list_id: Option<i64>,
22    #[serde(rename = "contingencyType", skip_serializing_if = "Option::is_none")]
23    pub contingency_type: Option<String>,
24    #[serde(rename = "listStatusType", skip_serializing_if = "Option::is_none")]
25    pub list_status_type: Option<String>,
26    #[serde(rename = "listOrderStatus", skip_serializing_if = "Option::is_none")]
27    pub list_order_status: Option<String>,
28    #[serde(rename = "listClientOrderId", skip_serializing_if = "Option::is_none")]
29    pub list_client_order_id: Option<String>,
30    #[serde(rename = "transactionTime", skip_serializing_if = "Option::is_none")]
31    pub transaction_time: Option<i64>,
32    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
33    pub symbol: Option<String>,
34    #[serde(rename = "orders", skip_serializing_if = "Option::is_none")]
35    pub orders: Option<Vec<models::OrderOcoResponseOrdersInner>>,
36    #[serde(rename = "orderReports", skip_serializing_if = "Option::is_none")]
37    pub order_reports: Option<Vec<models::OrderOcoResponseOrderReportsInner>>,
38}
39
40impl OrderOcoResponse {
41    #[must_use]
42    pub fn new() -> OrderOcoResponse {
43        OrderOcoResponse {
44            order_list_id: None,
45            contingency_type: None,
46            list_status_type: None,
47            list_order_status: None,
48            list_client_order_id: None,
49            transaction_time: None,
50            symbol: None,
51            orders: None,
52            order_reports: None,
53        }
54    }
55}