openxapi-binance 0.3.0

Rust client for Binance API
Documentation
/*
 * Binance COIN-M Futures API
 *
 * OpenAPI specification for Binance exchange - Cmfutures API
 *
 * The version of the OpenAPI document: 0.3.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmfuturesGetExchangeInfoV1Resp {
    #[serde(rename = "exchangeFilters", skip_serializing_if = "Option::is_none")]
    pub exchange_filters: Option<Vec<serde_json::Value>>,
    #[serde(rename = "rateLimits", skip_serializing_if = "Option::is_none")]
    pub rate_limits: Option<Vec<models::CmfuturesGetExchangeInfoV1RespRateLimitsInner>>,
    #[serde(rename = "serverTime", skip_serializing_if = "Option::is_none")]
    pub server_time: Option<i64>,
    #[serde(rename = "symbols", skip_serializing_if = "Option::is_none")]
    pub symbols: Option<Vec<models::CmfuturesGetExchangeInfoV1RespSymbolsInner>>,
    #[serde(rename = "timezone", skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
}

impl CmfuturesGetExchangeInfoV1Resp {
    pub fn new() -> CmfuturesGetExchangeInfoV1Resp {
        CmfuturesGetExchangeInfoV1Resp {
            exchange_filters: None,
            rate_limits: None,
            server_time: None,
            symbols: None,
            timezone: None,
        }
    }
}