openxapi-binance 0.3.0

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UmfuturesGetLeverageBracketV1RespItem {
    #[serde(rename = "brackets", skip_serializing_if = "Option::is_none")]
    pub brackets: Option<Vec<models::UmfuturesGetLeverageBracketV1RespItemBracketsInner>>,
    #[serde(rename = "notionalCoef", skip_serializing_if = "Option::is_none")]
    pub notional_coef: Option<f64>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
}

impl UmfuturesGetLeverageBracketV1RespItem {
    pub fn new() -> UmfuturesGetLeverageBracketV1RespItem {
        UmfuturesGetLeverageBracketV1RespItem {
            brackets: None,
            notional_coef: None,
            symbol: None,
        }
    }
}