/*
 * Binance Sub Account REST API
 *
 * OpenAPI Specification for the Binance Sub Account 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::sub_account::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSummaryOfSubAccountsFuturesAccountV2ResponseFutureAccountSummaryRespSubAccountListInner
{
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[serde(rename = "totalInitialMargin", skip_serializing_if = "Option::is_none")]
    pub total_initial_margin: Option<String>,
    #[serde(
        rename = "totalMaintenanceMargin",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_maintenance_margin: Option<String>,
    #[serde(rename = "totalMarginBalance", skip_serializing_if = "Option::is_none")]
    pub total_margin_balance: Option<String>,
    #[serde(
        rename = "totalOpenOrderInitialMargin",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_open_order_initial_margin: Option<String>,
    #[serde(
        rename = "totalPositionInitialMargin",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_position_initial_margin: Option<String>,
    #[serde(
        rename = "totalUnrealizedProfit",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_unrealized_profit: Option<String>,
    #[serde(rename = "totalWalletBalance", skip_serializing_if = "Option::is_none")]
    pub total_wallet_balance: Option<String>,
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
}

impl GetSummaryOfSubAccountsFuturesAccountV2ResponseFutureAccountSummaryRespSubAccountListInner {
    #[must_use]
    pub fn new()
    -> GetSummaryOfSubAccountsFuturesAccountV2ResponseFutureAccountSummaryRespSubAccountListInner
    {
        GetSummaryOfSubAccountsFuturesAccountV2ResponseFutureAccountSummaryRespSubAccountListInner {
            email: None,
            total_initial_margin: None,
            total_maintenance_margin: None,
            total_margin_balance: None,
            total_open_order_initial_margin: None,
            total_position_initial_margin: None,
            total_unrealized_profit: None,
            total_wallet_balance: None,
            asset: None,
        }
    }
}
