Skip to main content

binance_sdk/spot/rest_api/models/
order_oco_response.rs

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