Skip to main content

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