/*
 * Binance Margin Trading REST API
 *
 * OpenAPI Specification for the Binance Margin Trading REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::margin_trading::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner {
    #[serde(rename = "leverage", skip_serializing_if = "Option::is_none")]
    pub leverage: Option<i64>,
    #[serde(rename = "maxDebt", skip_serializing_if = "Option::is_none")]
    pub max_debt: Option<rust_decimal::Decimal>,
    #[serde(
        rename = "maintenanceMarginRate",
        skip_serializing_if = "Option::is_none"
    )]
    pub maintenance_margin_rate: Option<rust_decimal::Decimal>,
    #[serde(rename = "initialMarginRate", skip_serializing_if = "Option::is_none")]
    pub initial_margin_rate: Option<rust_decimal::Decimal>,
    #[serde(rename = "fastNum", skip_serializing_if = "Option::is_none")]
    pub fast_num: Option<rust_decimal::Decimal>,
}

impl QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner {
    #[must_use]
    pub fn new() -> QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner
    {
        QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner {
            leverage: None,
            max_debt: None,
            maintenance_margin_rate: None,
            initial_margin_rate: None,
            fast_num: None,
        }
    }
}
