Skip to main content

binance_sdk/spot/rest_api/models/
reference_price_response.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 ReferencePriceResponse {
20    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
21    pub symbol: Option<String>,
22    /// Reference price. Can be `null` if no reference price is set.
23    #[serde(rename = "referencePrice", skip_serializing_if = "Option::is_none")]
24    pub reference_price: Option<String>,
25    /// Timestamp when reference price was valid.
26    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
27    pub timestamp: Option<i64>,
28}
29
30impl ReferencePriceResponse {
31    #[must_use]
32    pub fn new() -> ReferencePriceResponse {
33        ReferencePriceResponse {
34            symbol: None,
35            reference_price: None,
36            timestamp: None,
37        }
38    }
39}