binance-sdk 69.2.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 PriceStreamResponseRatesInner {
    /// Symbol (UPPERCASE ticker), e.g. `\"AAPL\"`.
    #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
    pub s: Option<String>,
    /// Internal asset code, `EQ_{symbol}`. Reference only; do not use as a trading identifier.
    #[serde(rename = "ac", skip_serializing_if = "Option::is_none")]
    pub ac: Option<String>,
    /// Latest price, trailing-zero stripped.
    #[serde(rename = "p", skip_serializing_if = "Option::is_none")]
    pub p: Option<String>,
    /// Price time (epoch milliseconds UTC); may be null.
    #[serde(
        rename = "t",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub t: Option<Option<i64>>,
    /// Previous day's RTH close price (reference); absent when unknown.
    #[serde(rename = "pc", skip_serializing_if = "Option::is_none")]
    pub pc: Option<String>,
    /// Today's RTH close price; absent before After-Hours.
    #[serde(rename = "tc", skip_serializing_if = "Option::is_none")]
    pub tc: Option<String>,
    /// Per-symbol market phase: `C` Closed, `ON` Overnight, `PRE` Pre-Market, `O` Market Open, `POST` Post-Market.
    #[serde(rename = "mp", skip_serializing_if = "Option::is_none")]
    pub mp: Option<String>,
}

impl PriceStreamResponseRatesInner {
    #[must_use]
    pub fn new() -> PriceStreamResponseRatesInner {
        PriceStreamResponseRatesInner {
            s: None,
            ac: None,
            p: None,
            t: None,
            pc: None,
            tc: None,
            mp: None,
        }
    }
}