Skip to main content

binance_sdk/spot/rest_api/models/
order_test_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/// `OrderTestResponseDiscount` : Discount on standard commissions when paying in BNB.
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct OrderTestResponseDiscount {
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    #[serde(rename = "discount", skip_serializing_if = "Option::is_none")]
28    pub discount: Option<String>,
29}
30
31impl OrderTestResponseDiscount {
32    /// Discount on standard commissions when paying in BNB.
33    #[must_use]
34    pub fn new() -> OrderTestResponseDiscount {
35        OrderTestResponseDiscount {
36            enabled_for_account: None,
37            enabled_for_symbol: None,
38            discount_asset: None,
39            discount: None,
40        }
41    }
42}