/*
 * Binance Derivatives Trading Portfolio Margin Pro REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin Pro 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::derivatives_trading_portfolio_margin_pro::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetPortfolioMarginProAccountBalanceResponseInner {
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
    #[serde(rename = "totalWalletBalance", skip_serializing_if = "Option::is_none")]
    pub total_wallet_balance: Option<String>,
    #[serde(rename = "crossMarginAsset", skip_serializing_if = "Option::is_none")]
    pub cross_margin_asset: Option<String>,
    #[serde(
        rename = "crossMarginBorrowed",
        skip_serializing_if = "Option::is_none"
    )]
    pub cross_margin_borrowed: Option<String>,
    #[serde(rename = "crossMarginFree", skip_serializing_if = "Option::is_none")]
    pub cross_margin_free: Option<String>,
    #[serde(
        rename = "crossMarginInterest",
        skip_serializing_if = "Option::is_none"
    )]
    pub cross_margin_interest: Option<String>,
    #[serde(rename = "crossMarginLocked", skip_serializing_if = "Option::is_none")]
    pub cross_margin_locked: Option<String>,
    #[serde(rename = "umWalletBalance", skip_serializing_if = "Option::is_none")]
    pub um_wallet_balance: Option<String>,
    #[serde(rename = "umUnrealizedPNL", skip_serializing_if = "Option::is_none")]
    pub um_unrealized_pnl: Option<String>,
    #[serde(rename = "cmWalletBalance", skip_serializing_if = "Option::is_none")]
    pub cm_wallet_balance: Option<String>,
    #[serde(rename = "cmUnrealizedPNL", skip_serializing_if = "Option::is_none")]
    pub cm_unrealized_pnl: Option<String>,
    #[serde(rename = "updateTime", skip_serializing_if = "Option::is_none")]
    pub update_time: Option<i64>,
    #[serde(rename = "negativeBalance", skip_serializing_if = "Option::is_none")]
    pub negative_balance: Option<String>,
    #[serde(
        rename = "optionWalletBalance",
        skip_serializing_if = "Option::is_none"
    )]
    pub option_wallet_balance: Option<String>,
    #[serde(rename = "optionEquity", skip_serializing_if = "Option::is_none")]
    pub option_equity: Option<String>,
}

impl GetPortfolioMarginProAccountBalanceResponseInner {
    #[must_use]
    pub fn new() -> GetPortfolioMarginProAccountBalanceResponseInner {
        GetPortfolioMarginProAccountBalanceResponseInner {
            asset: None,
            total_wallet_balance: None,
            cross_margin_asset: None,
            cross_margin_borrowed: None,
            cross_margin_free: None,
            cross_margin_interest: None,
            cross_margin_locked: None,
            um_wallet_balance: None,
            um_unrealized_pnl: None,
            cm_wallet_balance: None,
            cm_unrealized_pnl: None,
            update_time: None,
            negative_balance: None,
            option_wallet_balance: None,
            option_equity: None,
        }
    }
}
