binance-sdk 61.0.0

This is a lightweight library that works as a connector to the Binance public API.
Documentation
/*
 * Spot WebSocket Market Streams
 *
 * Access market data, manage accounts, and trade on Binance Spot.
 *
 * 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::spot::websocket_streams::models;
use serde::{Deserialize, Deserializer, Serialize, de::Error};
use serde_json::Value;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DiffBookDepthResponse {
    /// Event type
    #[serde(rename = "e", skip_serializing_if = "Option::is_none")]
    pub e: Option<String>,
    /// Event time
    #[serde(rename = "E", skip_serializing_if = "Option::is_none")]
    pub e_uppercase: Option<i64>,
    /// Symbol
    #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
    pub s: Option<String>,
    /// First update ID in event
    #[serde(rename = "U", skip_serializing_if = "Option::is_none")]
    pub u_uppercase: Option<i64>,
    /// Final update ID in event
    #[serde(rename = "u", skip_serializing_if = "Option::is_none")]
    pub u: Option<i64>,
    /// 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 DiffBookDepthResponse {
    #[must_use]
    pub fn new() -> DiffBookDepthResponse {
        DiffBookDepthResponse {
            e: None,
            e_uppercase: None,
            s: None,
            u_uppercase: None,
            u: None,
            b: None,
            a: None,
        }
    }
}