openxapi-binance 0.1.2

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.1.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UmfuturesGetOpenInterestV1Resp {
    #[serde(rename = "openInterest", skip_serializing_if = "Option::is_none")]
    pub open_interest: Option<String>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
    pub time: Option<i64>,
}

impl UmfuturesGetOpenInterestV1Resp {
    pub fn new() -> UmfuturesGetOpenInterestV1Resp {
        UmfuturesGetOpenInterestV1Resp {
            open_interest: None,
            symbol: None,
            time: None,
        }
    }
}