Skip to main content

binance_sdk/spot/rest_api/models/
my_prevented_matches_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 MyPreventedMatchesResponseInner {
25    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
26    pub symbol: Option<String>,
27    #[serde(rename = "preventedMatchId", skip_serializing_if = "Option::is_none")]
28    pub prevented_match_id: Option<i64>,
29    #[serde(rename = "takerOrderId", skip_serializing_if = "Option::is_none")]
30    pub taker_order_id: Option<i64>,
31    #[serde(rename = "makerSymbol", skip_serializing_if = "Option::is_none")]
32    pub maker_symbol: Option<String>,
33    #[serde(rename = "makerOrderId", skip_serializing_if = "Option::is_none")]
34    pub maker_order_id: Option<i64>,
35    #[serde(rename = "tradeGroupId", skip_serializing_if = "Option::is_none")]
36    pub trade_group_id: Option<i64>,
37    #[serde(
38        rename = "selfTradePreventionMode",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub self_trade_prevention_mode: Option<String>,
42    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
43    pub price: Option<String>,
44    #[serde(
45        rename = "makerPreventedQuantity",
46        skip_serializing_if = "Option::is_none"
47    )]
48    pub maker_prevented_quantity: Option<String>,
49    #[serde(rename = "transactTime", skip_serializing_if = "Option::is_none")]
50    pub transact_time: Option<i64>,
51}
52
53impl MyPreventedMatchesResponseInner {
54    #[must_use]
55    pub fn new() -> MyPreventedMatchesResponseInner {
56        MyPreventedMatchesResponseInner {
57            symbol: None,
58            prevented_match_id: None,
59            taker_order_id: None,
60            maker_symbol: None,
61            maker_order_id: None,
62            trade_group_id: None,
63            self_trade_prevention_mode: None,
64            price: None,
65            maker_prevented_quantity: None,
66            transact_time: None,
67        }
68    }
69}