openxapi-binance 0.2.0

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMarginLeverageBracketV1RespItem {
    #[serde(rename = "assetNames", skip_serializing_if = "Option::is_none")]
    pub asset_names: Option<Vec<String>>,
    #[serde(rename = "brackets", skip_serializing_if = "Option::is_none")]
    pub brackets: Option<Vec<models::GetMarginLeverageBracketV1RespItemBracketsInner>>,
    #[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
    pub rank: Option<i32>,
}

impl GetMarginLeverageBracketV1RespItem {
    pub fn new() -> GetMarginLeverageBracketV1RespItem {
        GetMarginLeverageBracketV1RespItem {
            asset_names: None,
            brackets: None,
            rank: None,
        }
    }
}