Skip to main content

binance_sdk/spot/rest_api/models/
ticker_book_ticker_response2_inner.rs

1/*
2 * Spot REST 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::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct TickerBookTickerResponse2Inner {
20    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
21    pub symbol: Option<String>,
22    /// best bid price.
23    #[serde(rename = "bidPrice", skip_serializing_if = "Option::is_none")]
24    pub bid_price: Option<String>,
25    /// bid/ask qty.
26    #[serde(rename = "bidQty", skip_serializing_if = "Option::is_none")]
27    pub bid_qty: Option<String>,
28    /// best ask price.
29    #[serde(rename = "askPrice", skip_serializing_if = "Option::is_none")]
30    pub ask_price: Option<String>,
31    /// bid/ask qty.
32    #[serde(rename = "askQty", skip_serializing_if = "Option::is_none")]
33    pub ask_qty: Option<String>,
34}
35
36impl TickerBookTickerResponse2Inner {
37    #[must_use]
38    pub fn new() -> TickerBookTickerResponse2Inner {
39        TickerBookTickerResponse2Inner {
40            symbol: None,
41            bid_price: None,
42            bid_qty: None,
43            ask_price: None,
44            ask_qty: None,
45        }
46    }
47}