binance-sdk 70.1.1

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 TradabilityStreamResponse {
    /// Event type, always `\"tradability\"`.
    #[serde(rename = "e", skip_serializing_if = "Option::is_none")]
    pub e: Option<String>,
    /// Symbol (UPPERCASE ticker).
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    /// Internal asset code `EQ_{symbol}`; reference only. May be null for symbols not yet in the symbol dictionary.
    #[serde(
        rename = "assetCode",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub asset_code: Option<Option<String>>,
    /// The new tradability value. `OFFMARKET` and `DELISTING` are protected states — trading-status events will not transition a symbol out of them.
    #[serde(rename = "tradability", skip_serializing_if = "Option::is_none")]
    pub tradability: Option<String>,
    /// Push time (epoch milliseconds UTC).
    #[serde(rename = "t", skip_serializing_if = "Option::is_none")]
    pub t: Option<i64>,
}

impl TradabilityStreamResponse {
    #[must_use]
    pub fn new() -> TradabilityStreamResponse {
        TradabilityStreamResponse {
            e: None,
            symbol: None,
            asset_code: None,
            tradability: None,
            t: None,
        }
    }
}