Skip to main content

binance/options/models/
get_account_v1_resp.rs

1/*
2 * Binance Options API
3 *
4 * OpenAPI specification for Binance exchange - Options API
5 *
6 * The version of the OpenAPI document: 0.3.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::options::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetAccountV1Resp {
16    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
17    pub asset: Option<Vec<models::GetAccountV1RespAssetInner>>,
18    #[serde(rename = "greek", skip_serializing_if = "Option::is_none")]
19    pub greek: Option<Vec<models::GetAccountV1RespGreekInner>>,
20    #[serde(rename = "riskLevel", skip_serializing_if = "Option::is_none")]
21    pub risk_level: Option<String>,
22    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
23    pub time: Option<i64>,
24}
25
26impl GetAccountV1Resp {
27    pub fn new() -> GetAccountV1Resp {
28        GetAccountV1Resp {
29            asset: None,
30            greek: None,
31            risk_level: None,
32            time: None,
33        }
34    }
35}
36