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 GetMarginPriceIndexV1Resp {
    #[serde(rename = "calcTime", skip_serializing_if = "Option::is_none")]
    pub calc_time: Option<i64>,
    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
    pub price: Option<String>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
}

impl GetMarginPriceIndexV1Resp {
    pub fn new() -> GetMarginPriceIndexV1Resp {
        GetMarginPriceIndexV1Resp {
            calc_time: None,
            price: None,
            symbol: None,
        }
    }
}