Skip to main content

binance_sdk/spot/websocket_api/models/
my_allocations_response_result_inner.rs

1/*
2 * Spot WebSocket 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::websocket_api::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct MyAllocationsResponseResultInner {
21    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
22    pub symbol: Option<String>,
23    #[serde(rename = "allocationId", skip_serializing_if = "Option::is_none")]
24    pub allocation_id: Option<i64>,
25    #[serde(rename = "allocationType", skip_serializing_if = "Option::is_none")]
26    pub allocation_type: Option<String>,
27    #[serde(rename = "orderId", skip_serializing_if = "Option::is_none")]
28    pub order_id: Option<i64>,
29    #[serde(rename = "orderListId", skip_serializing_if = "Option::is_none")]
30    pub order_list_id: Option<i64>,
31    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
32    pub price: Option<String>,
33    #[serde(rename = "qty", skip_serializing_if = "Option::is_none")]
34    pub qty: Option<String>,
35    #[serde(rename = "quoteQty", skip_serializing_if = "Option::is_none")]
36    pub quote_qty: Option<String>,
37    #[serde(rename = "commission", skip_serializing_if = "Option::is_none")]
38    pub commission: Option<String>,
39    #[serde(rename = "commissionAsset", skip_serializing_if = "Option::is_none")]
40    pub commission_asset: Option<String>,
41    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
42    pub time: Option<i64>,
43    #[serde(rename = "isBuyer", skip_serializing_if = "Option::is_none")]
44    pub is_buyer: Option<bool>,
45    #[serde(rename = "isMaker", skip_serializing_if = "Option::is_none")]
46    pub is_maker: Option<bool>,
47    #[serde(rename = "isAllocator", skip_serializing_if = "Option::is_none")]
48    pub is_allocator: Option<bool>,
49}
50
51impl MyAllocationsResponseResultInner {
52    #[must_use]
53    pub fn new() -> MyAllocationsResponseResultInner {
54        MyAllocationsResponseResultInner {
55            symbol: None,
56            allocation_id: None,
57            allocation_type: None,
58            order_id: None,
59            order_list_id: None,
60            price: None,
61            qty: None,
62            quote_qty: None,
63            commission: None,
64            commission_asset: None,
65            time: None,
66            is_buyer: None,
67            is_maker: None,
68            is_allocator: None,
69        }
70    }
71}