binance-sdk 70.1.0

This is a lightweight library that works as a connector to the Binance public API.
Documentation
/*
 * Stocks Trading WebSocket Streams
 *
 * WebSocket stream definitions for Binance Stocks Trading. Base URL: wss://nbstream.binance.com/equity
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::stocks::websocket_streams::models;
use serde::{Deserialize, Deserializer, Serialize, de::Error};
use serde_json::Value;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TradingStatusStreamResponse {
    /// Event type, always `\"tradingStatus\"`.
    #[serde(rename = "e", skip_serializing_if = "Option::is_none")]
    pub e: Option<String>,
    /// Symbol (UPPERCASE ticker), e.g. `\"AAPL\"`.
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    /// Internal asset code `EQ_{symbol}`; reference only.
    #[serde(rename = "assetCode", skip_serializing_if = "Option::is_none")]
    pub asset_code: Option<String>,
    /// Trading status.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Reason code.
    #[serde(rename = "msg", skip_serializing_if = "Option::is_none")]
    pub msg: Option<String>,
    /// Status-effective time (epoch milliseconds UTC). May be in the future.
    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
    pub time: Option<i64>,
    /// Tape designation: `C` = CTA (NYSE / AMEX), `N` = UTP (Nasdaq).
    #[serde(rename = "z", skip_serializing_if = "Option::is_none")]
    pub z: Option<String>,
    /// Tradability after the status change: `BUY_SELL` / `BUY` / `SELL` / `NONE`.
    #[serde(rename = "tradability", skip_serializing_if = "Option::is_none")]
    pub tradability: Option<String>,
}

impl TradingStatusStreamResponse {
    #[must_use]
    pub fn new() -> TradingStatusStreamResponse {
        TradingStatusStreamResponse {
            e: None,
            symbol: None,
            asset_code: None,
            status: None,
            msg: None,
            time: None,
            z: None,
            tradability: None,
        }
    }
}