Skip to main content

binance_sdk/spot/websocket_api/models/
ticker_response2_result_inner.rs

1/*
2 * Binance Spot WebSocket API
3 *
4 * OpenAPI Specifications for the Binance Spot WebSocket API
5 *
6 * API documents:
7 * - [Github web-socket-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-api.md)
8 * - [General API information for web-socket-api on website](https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/general-api-information)
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_api::models;
21use serde::{Deserialize, Deserializer, Serialize, de::Error};
22use serde_json::Value;
23
24#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
25pub struct TickerResponse2ResultInner {
26    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
27    pub symbol: Option<String>,
28    #[serde(rename = "priceChange", skip_serializing_if = "Option::is_none")]
29    pub price_change: Option<String>,
30    #[serde(rename = "priceChangePercent", skip_serializing_if = "Option::is_none")]
31    pub price_change_percent: Option<String>,
32    #[serde(rename = "weightedAvgPrice", skip_serializing_if = "Option::is_none")]
33    pub weighted_avg_price: Option<String>,
34    #[serde(rename = "openPrice", skip_serializing_if = "Option::is_none")]
35    pub open_price: Option<String>,
36    #[serde(rename = "highPrice", skip_serializing_if = "Option::is_none")]
37    pub high_price: Option<String>,
38    #[serde(rename = "lowPrice", skip_serializing_if = "Option::is_none")]
39    pub low_price: Option<String>,
40    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
41    pub last_price: Option<String>,
42    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
43    pub volume: Option<String>,
44    #[serde(rename = "quoteVolume", skip_serializing_if = "Option::is_none")]
45    pub quote_volume: Option<String>,
46    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
47    pub open_time: Option<i64>,
48    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
49    pub close_time: Option<i64>,
50    #[serde(rename = "firstId", skip_serializing_if = "Option::is_none")]
51    pub first_id: Option<i64>,
52    #[serde(rename = "lastId", skip_serializing_if = "Option::is_none")]
53    pub last_id: Option<i64>,
54    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
55    pub count: Option<i64>,
56}
57
58impl TickerResponse2ResultInner {
59    #[must_use]
60    pub fn new() -> TickerResponse2ResultInner {
61        TickerResponse2ResultInner {
62            symbol: None,
63            price_change: None,
64            price_change_percent: None,
65            weighted_avg_price: None,
66            open_price: None,
67            high_price: None,
68            low_price: None,
69            last_price: None,
70            volume: None,
71            quote_volume: None,
72            open_time: None,
73            close_time: None,
74            first_id: None,
75            last_id: None,
76            count: None,
77        }
78    }
79}