/*
 * 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 QueryIsolatedMarginAccountInfoResponseAssetsInner {
    #[serde(rename = "baseAsset", skip_serializing_if = "Option::is_none")]
    pub base_asset: Option<Box<models::QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset>>,
    #[serde(rename = "quoteAsset", skip_serializing_if = "Option::is_none")]
    pub quote_asset:
        Option<Box<models::QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset>>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    #[serde(rename = "isolatedCreated", skip_serializing_if = "Option::is_none")]
    pub isolated_created: Option<bool>,
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    #[serde(rename = "marginLevel", skip_serializing_if = "Option::is_none")]
    pub margin_level: Option<String>,
    #[serde(rename = "marginLevelStatus", skip_serializing_if = "Option::is_none")]
    pub margin_level_status: Option<String>,
    #[serde(rename = "marginRatio", skip_serializing_if = "Option::is_none")]
    pub margin_ratio: Option<String>,
    #[serde(rename = "indexPrice", skip_serializing_if = "Option::is_none")]
    pub index_price: Option<String>,
    #[serde(rename = "liquidatePrice", skip_serializing_if = "Option::is_none")]
    pub liquidate_price: Option<String>,
    #[serde(rename = "liquidateRate", skip_serializing_if = "Option::is_none")]
    pub liquidate_rate: Option<String>,
    #[serde(rename = "tradeEnabled", skip_serializing_if = "Option::is_none")]
    pub trade_enabled: Option<bool>,
}

impl QueryIsolatedMarginAccountInfoResponseAssetsInner {
    #[must_use]
    pub fn new() -> QueryIsolatedMarginAccountInfoResponseAssetsInner {
        QueryIsolatedMarginAccountInfoResponseAssetsInner {
            base_asset: None,
            quote_asset: None,
            symbol: None,
            isolated_created: None,
            enabled: None,
            margin_level: None,
            margin_level_status: None,
            margin_ratio: None,
            index_price: None,
            liquidate_price: None,
            liquidate_rate: None,
            trade_enabled: None,
        }
    }
}
