Skip to main content

binance_sdk/spot/rest_api/models/
my_allocations_response_inner.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 MyAllocationsResponseInner {
25    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
26    pub symbol: Option<String>,
27    #[serde(rename = "allocationId", skip_serializing_if = "Option::is_none")]
28    pub allocation_id: Option<i64>,
29    #[serde(rename = "allocationType", skip_serializing_if = "Option::is_none")]
30    pub allocation_type: Option<String>,
31    #[serde(rename = "orderId", skip_serializing_if = "Option::is_none")]
32    pub order_id: Option<i64>,
33    #[serde(rename = "orderListId", skip_serializing_if = "Option::is_none")]
34    pub order_list_id: Option<i64>,
35    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
36    pub price: Option<String>,
37    #[serde(rename = "qty", skip_serializing_if = "Option::is_none")]
38    pub qty: Option<String>,
39    #[serde(rename = "quoteQty", skip_serializing_if = "Option::is_none")]
40    pub quote_qty: Option<String>,
41    #[serde(rename = "commission", skip_serializing_if = "Option::is_none")]
42    pub commission: Option<String>,
43    #[serde(rename = "commissionAsset", skip_serializing_if = "Option::is_none")]
44    pub commission_asset: Option<String>,
45    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
46    pub time: Option<i64>,
47    #[serde(rename = "isBuyer", skip_serializing_if = "Option::is_none")]
48    pub is_buyer: Option<bool>,
49    #[serde(rename = "isMaker", skip_serializing_if = "Option::is_none")]
50    pub is_maker: Option<bool>,
51    #[serde(rename = "isAllocator", skip_serializing_if = "Option::is_none")]
52    pub is_allocator: Option<bool>,
53}
54
55impl MyAllocationsResponseInner {
56    #[must_use]
57    pub fn new() -> MyAllocationsResponseInner {
58        MyAllocationsResponseInner {
59            symbol: None,
60            allocation_id: None,
61            allocation_type: None,
62            order_id: None,
63            order_list_id: None,
64            price: None,
65            qty: None,
66            quote_qty: None,
67            commission: None,
68            commission_asset: None,
69            time: None,
70            is_buyer: None,
71            is_maker: None,
72            is_allocator: None,
73        }
74    }
75}