Skip to main content

binance_sdk/spot/websocket_api/models/
ticker_book_response2_result_inner.rs

1/*
2 * Spot WebSocket API
3 *
4 * Access market data, manage accounts, and trade on Binance Spot.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 *
9 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10 * https://openapi-generator.tech
11 * Do not edit the class manually.
12 */
13
14#![allow(unused_imports)]
15use crate::spot::websocket_api::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct TickerBookResponse2ResultInner {
21    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
22    pub symbol: Option<String>,
23    /// best bid price.
24    #[serde(rename = "bidPrice", skip_serializing_if = "Option::is_none")]
25    pub bid_price: Option<String>,
26    /// bid/ask qty.
27    #[serde(rename = "bidQty", skip_serializing_if = "Option::is_none")]
28    pub bid_qty: Option<String>,
29    /// best ask price.
30    #[serde(rename = "askPrice", skip_serializing_if = "Option::is_none")]
31    pub ask_price: Option<String>,
32    /// bid/ask qty.
33    #[serde(rename = "askQty", skip_serializing_if = "Option::is_none")]
34    pub ask_qty: Option<String>,
35}
36
37impl TickerBookResponse2ResultInner {
38    #[must_use]
39    pub fn new() -> TickerBookResponse2ResultInner {
40        TickerBookResponse2ResultInner {
41            symbol: None,
42            bid_price: None,
43            bid_qty: None,
44            ask_price: None,
45            ask_qty: None,
46        }
47    }
48}