openxapi-binance 0.2.0

Rust client for Binance API
Documentation
/*
 * Binance Options API
 *
 * OpenAPI specification for Binance exchange - Options API
 *
 * The version of the OpenAPI document: 0.2.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::options::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMarginAccountV1Resp {
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<Vec<models::GetMarginAccountV1RespAssetInner>>,
    #[serde(rename = "greek", skip_serializing_if = "Option::is_none")]
    pub greek: Option<Vec<models::GetAccountV1RespGreekInner>>,
    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
    pub time: Option<i64>,
}

impl GetMarginAccountV1Resp {
    pub fn new() -> GetMarginAccountV1Resp {
        GetMarginAccountV1Resp {
            asset: None,
            greek: None,
            time: None,
        }
    }
}