Skip to main content

binance_sdk/spot/websocket_api/models/
account_commission_response_result_discount.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/// `AccountCommissionResponseResultDiscount` : Discount on standard commissions when paying in BNB.
20#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
21pub struct AccountCommissionResponseResultDiscount {
22    #[serde(rename = "enabledForAccount", skip_serializing_if = "Option::is_none")]
23    pub enabled_for_account: Option<bool>,
24    #[serde(rename = "enabledForSymbol", skip_serializing_if = "Option::is_none")]
25    pub enabled_for_symbol: Option<bool>,
26    #[serde(rename = "discountAsset", skip_serializing_if = "Option::is_none")]
27    pub discount_asset: Option<String>,
28    /// Standard commission is reduced by this rate when paying commission in BNB.
29    #[serde(rename = "discount", skip_serializing_if = "Option::is_none")]
30    pub discount: Option<String>,
31}
32
33impl AccountCommissionResponseResultDiscount {
34    /// Discount on standard commissions when paying in BNB.
35    #[must_use]
36    pub fn new() -> AccountCommissionResponseResultDiscount {
37        AccountCommissionResponseResultDiscount {
38            enabled_for_account: None,
39            enabled_for_symbol: None,
40            discount_asset: None,
41            discount: None,
42        }
43    }
44}