Skip to main content

binance_sdk/spot/websocket_streams/models/
partial_book_depth_response.rs

1/*
2 * Binance Spot WebSocket Streams
3 *
4 * OpenAPI Specifications for the Binance Spot WebSocket Streams
5 *
6 * API documents:
7 * - [Github web-socket-streams documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md)
8 * - [General API information for web-socket-streams on website](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams)
9 *
10 *
11 * The version of the OpenAPI document: 1.0.0
12 *
13 *
14 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15 * https://openapi-generator.tech
16 * Do not edit the class manually.
17 */
18
19#![allow(unused_imports)]
20use crate::spot::websocket_streams::models;
21use serde::{Deserialize, Deserializer, Serialize, de::Error};
22use serde_json::Value;
23
24#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
25pub struct PartialBookDepthResponse {
26    #[serde(rename = "lastUpdateId", skip_serializing_if = "Option::is_none")]
27    pub last_update_id: Option<i64>,
28    #[serde(rename = "bids", skip_serializing_if = "Option::is_none")]
29    pub bids: Option<Vec<Vec<String>>>,
30    #[serde(rename = "asks", skip_serializing_if = "Option::is_none")]
31    pub asks: Option<Vec<Vec<String>>>,
32}
33
34impl PartialBookDepthResponse {
35    #[must_use]
36    pub fn new() -> PartialBookDepthResponse {
37        PartialBookDepthResponse {
38            last_update_id: None,
39            bids: None,
40            asks: None,
41        }
42    }
43}