Skip to main content

binance_sdk/spot/websocket_streams/models/
reference_price_response.rs

1/*
2 * Spot WebSocket Market Streams
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_streams::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct ReferencePriceResponse {
21    /// Event type
22    #[serde(rename = "e", skip_serializing_if = "Option::is_none")]
23    pub e: Option<String>,
24    /// Symbol
25    #[serde(rename = "s", skip_serializing_if = "Option::is_none")]
26    pub s: Option<String>,
27    /// Reference price (null if no reference price)
28    #[serde(rename = "r", skip_serializing_if = "Option::is_none")]
29    pub r: Option<String>,
30    /// Engine timestamp when reference price was valid
31    #[serde(rename = "t", skip_serializing_if = "Option::is_none")]
32    pub t: Option<i64>,
33}
34
35impl ReferencePriceResponse {
36    #[must_use]
37    pub fn new() -> ReferencePriceResponse {
38        ReferencePriceResponse {
39            e: None,
40            s: None,
41            r: None,
42            t: None,
43        }
44    }
45}