binance-sdk 61.0.0

This is a lightweight library that works as a connector to the Binance public API.
Documentation
/*
 * Alpha WebSocket Market Streams
 *
 * Access Alpha market streams over WebSocket.
 *
 * 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::alpha::websocket_streams::models;
use serde::{Deserialize, Deserializer, Serialize, de::Error};
use serde_json::Value;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FullDepthStreamResponse {
    /// Event type
    #[serde(rename = "e", skip_serializing_if = "Option::is_none")]
    pub e: Option<String>,
    /// Event time (ms)
    #[serde(rename = "E", skip_serializing_if = "Option::is_none")]
    pub e_uppercase: Option<i64>,
    /// Matching time (ms)
    #[serde(rename = "T", skip_serializing_if = "Option::is_none")]
    pub t_uppercase: Option<i64>,
    /// First updateId in this event
    #[serde(rename = "U", skip_serializing_if = "Option::is_none")]
    pub u_uppercase: Option<i64>,
    /// Last updateId in this event
    #[serde(rename = "u", skip_serializing_if = "Option::is_none")]
    pub u: Option<i64>,
    /// Previous updateId from the last push
    #[serde(rename = "pu", skip_serializing_if = "Option::is_none")]
    pub pu: Option<i64>,
    /// Symbol
    #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
    pub s: Option<String>,
    /// bids to be updated
    #[serde(rename = "b", skip_serializing_if = "Option::is_none")]
    pub b: Option<Vec<Vec<String>>>,
    /// asks to be updated
    #[serde(rename = "a", skip_serializing_if = "Option::is_none")]
    pub a: Option<Vec<Vec<String>>>,
}

impl FullDepthStreamResponse {
    #[must_use]
    pub fn new() -> FullDepthStreamResponse {
        FullDepthStreamResponse {
            e: None,
            e_uppercase: None,
            t_uppercase: None,
            u_uppercase: None,
            u: None,
            pu: None,
            s: None,
            b: None,
            a: None,
        }
    }
}