/*
 * 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 GetDetailOnSubAccountsFuturesAccountV2ResponseDeliveryAccountRespAssetsInner {
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
    #[serde(rename = "initialMargin", skip_serializing_if = "Option::is_none")]
    pub initial_margin: Option<String>,
    #[serde(rename = "maintenanceMargin", skip_serializing_if = "Option::is_none")]
    pub maintenance_margin: Option<String>,
    #[serde(rename = "marginBalance", skip_serializing_if = "Option::is_none")]
    pub margin_balance: Option<String>,
    #[serde(rename = "maxWithdrawAmount", skip_serializing_if = "Option::is_none")]
    pub max_withdraw_amount: Option<String>,
    #[serde(
        rename = "openOrderInitialMargin",
        skip_serializing_if = "Option::is_none"
    )]
    pub open_order_initial_margin: Option<String>,
    #[serde(
        rename = "positionInitialMargin",
        skip_serializing_if = "Option::is_none"
    )]
    pub position_initial_margin: Option<String>,
    #[serde(rename = "unrealizedProfit", skip_serializing_if = "Option::is_none")]
    pub unrealized_profit: Option<String>,
    #[serde(rename = "walletBalance", skip_serializing_if = "Option::is_none")]
    pub wallet_balance: Option<String>,
}

impl GetDetailOnSubAccountsFuturesAccountV2ResponseDeliveryAccountRespAssetsInner {
    #[must_use]
    pub fn new() -> GetDetailOnSubAccountsFuturesAccountV2ResponseDeliveryAccountRespAssetsInner {
        GetDetailOnSubAccountsFuturesAccountV2ResponseDeliveryAccountRespAssetsInner {
            asset: None,
            initial_margin: None,
            maintenance_margin: None,
            margin_balance: None,
            max_withdraw_amount: None,
            open_order_initial_margin: None,
            position_initial_margin: None,
            unrealized_profit: None,
            wallet_balance: None,
        }
    }
}
