Skip to main content

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