Skip to main content

binance_sdk/spot/websocket_api/models/
my_allocations_response_result_inner.rs

1/*
2 * Binance Spot WebSocket API
3 *
4 * OpenAPI Specifications for the Binance Spot WebSocket API
5 *
6 * API documents:
7 * - [Github web-socket-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-api.md)
8 * - [General API information for web-socket-api on website](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-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::websocket_api::models;
21use serde::{Deserialize, Deserializer, Serialize, de::Error};
22use serde_json::Value;
23
24#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
25pub struct MyAllocationsResponseResultInner {
26    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
27    pub symbol: Option<String>,
28    #[serde(rename = "allocationId", skip_serializing_if = "Option::is_none")]
29    pub allocation_id: Option<i64>,
30    #[serde(rename = "allocationType", skip_serializing_if = "Option::is_none")]
31    pub allocation_type: Option<String>,
32    #[serde(rename = "orderId", skip_serializing_if = "Option::is_none")]
33    pub order_id: Option<i64>,
34    #[serde(rename = "orderListId", skip_serializing_if = "Option::is_none")]
35    pub order_list_id: Option<i64>,
36    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
37    pub price: Option<String>,
38    #[serde(rename = "qty", skip_serializing_if = "Option::is_none")]
39    pub qty: Option<String>,
40    #[serde(rename = "quoteQty", skip_serializing_if = "Option::is_none")]
41    pub quote_qty: Option<String>,
42    #[serde(rename = "commission", skip_serializing_if = "Option::is_none")]
43    pub commission: Option<String>,
44    #[serde(rename = "commissionAsset", skip_serializing_if = "Option::is_none")]
45    pub commission_asset: Option<String>,
46    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
47    pub time: Option<i64>,
48    #[serde(rename = "isBuyer", skip_serializing_if = "Option::is_none")]
49    pub is_buyer: Option<bool>,
50    #[serde(rename = "isMaker", skip_serializing_if = "Option::is_none")]
51    pub is_maker: Option<bool>,
52    #[serde(rename = "isAllocator", skip_serializing_if = "Option::is_none")]
53    pub is_allocator: Option<bool>,
54}
55
56impl MyAllocationsResponseResultInner {
57    #[must_use]
58    pub fn new() -> MyAllocationsResponseResultInner {
59        MyAllocationsResponseResultInner {
60            symbol: None,
61            allocation_id: None,
62            allocation_type: None,
63            order_id: None,
64            order_list_id: None,
65            price: None,
66            qty: None,
67            quote_qty: None,
68            commission: None,
69            commission_asset: None,
70            time: None,
71            is_buyer: None,
72            is_maker: None,
73            is_allocator: None,
74        }
75    }
76}