Skip to main content

binance_sdk/spot/websocket_api/models/
reference_price_calculation_response_result.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 ReferencePriceCalculationResponseResult {
26    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
27    pub symbol: Option<String>,
28    #[serde(rename = "calculationType", skip_serializing_if = "Option::is_none")]
29    pub calculation_type: Option<String>,
30    #[serde(rename = "bucketCount", skip_serializing_if = "Option::is_none")]
31    pub bucket_count: Option<i64>,
32    #[serde(rename = "bucketWidthMs", skip_serializing_if = "Option::is_none")]
33    pub bucket_width_ms: Option<i64>,
34    #[serde(
35        rename = "externalCalculationId",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub external_calculation_id: Option<i64>,
39}
40
41impl ReferencePriceCalculationResponseResult {
42    #[must_use]
43    pub fn new() -> ReferencePriceCalculationResponseResult {
44        ReferencePriceCalculationResponseResult {
45            symbol: None,
46            calculation_type: None,
47            bucket_count: None,
48            bucket_width_ms: None,
49            external_calculation_id: None,
50        }
51    }
52}