/*
 * 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 QueryManagedSubAccountListResponseManagerSubUserInfoVoListInner {
    #[serde(rename = "rootUserId", skip_serializing_if = "Option::is_none")]
    pub root_user_id: Option<i64>,
    #[serde(rename = "managersubUserId", skip_serializing_if = "Option::is_none")]
    pub managersub_user_id: Option<i64>,
    #[serde(rename = "bindParentUserId", skip_serializing_if = "Option::is_none")]
    pub bind_parent_user_id: Option<i64>,
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[serde(rename = "insertTimeStamp", skip_serializing_if = "Option::is_none")]
    pub insert_time_stamp: Option<i64>,
    #[serde(rename = "bindParentEmail", skip_serializing_if = "Option::is_none")]
    pub bind_parent_email: Option<String>,
    #[serde(rename = "isSubUserEnabled", skip_serializing_if = "Option::is_none")]
    pub is_sub_user_enabled: Option<bool>,
    #[serde(rename = "isUserActive", skip_serializing_if = "Option::is_none")]
    pub is_user_active: Option<bool>,
    #[serde(rename = "isMarginEnabled", skip_serializing_if = "Option::is_none")]
    pub is_margin_enabled: Option<bool>,
    #[serde(rename = "isFutureEnabled", skip_serializing_if = "Option::is_none")]
    pub is_future_enabled: Option<bool>,
    #[serde(
        rename = "isSignedLVTRiskAgreement",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_signed_lvt_risk_agreement: Option<bool>,
}

impl QueryManagedSubAccountListResponseManagerSubUserInfoVoListInner {
    #[must_use]
    pub fn new() -> QueryManagedSubAccountListResponseManagerSubUserInfoVoListInner {
        QueryManagedSubAccountListResponseManagerSubUserInfoVoListInner {
            root_user_id: None,
            managersub_user_id: None,
            bind_parent_user_id: None,
            email: None,
            insert_time_stamp: None,
            bind_parent_email: None,
            is_sub_user_enabled: None,
            is_user_active: None,
            is_margin_enabled: None,
            is_future_enabled: None,
            is_signed_lvt_risk_agreement: None,
        }
    }
}
