Skip to main content

binance_sdk/spot/websocket_api/models/
account_commission_response_result.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 AccountCommissionResponseResult {
21    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
22    pub symbol: Option<String>,
23    #[serde(rename = "standardCommission", skip_serializing_if = "Option::is_none")]
24    pub standard_commission: Option<Box<models::AccountCommissionResponseResultStandardCommission>>,
25    #[serde(rename = "specialCommission", skip_serializing_if = "Option::is_none")]
26    pub special_commission: Option<Box<models::AccountCommissionResponseResultSpecialCommission>>,
27    #[serde(rename = "taxCommission", skip_serializing_if = "Option::is_none")]
28    pub tax_commission: Option<Box<models::AccountCommissionResponseResultTaxCommission>>,
29    #[serde(rename = "discount", skip_serializing_if = "Option::is_none")]
30    pub discount: Option<Box<models::AccountCommissionResponseResultDiscount>>,
31}
32
33impl AccountCommissionResponseResult {
34    #[must_use]
35    pub fn new() -> AccountCommissionResponseResult {
36        AccountCommissionResponseResult {
37            symbol: None,
38            standard_commission: None,
39            special_commission: None,
40            tax_commission: None,
41            discount: None,
42        }
43    }
44}