Skip to main content

binance_sdk/spot/rest_api/models/
reference_price_calculation_response.rs

1/*
2 * Binance Spot REST API
3 *
4 * OpenAPI Specifications for the Binance Spot REST API
5 *
6 * API documents:
7 * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md)
8 * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-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::rest_api::models;
21use serde::{Deserialize, Serialize};
22
23#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
24pub struct ReferencePriceCalculationResponse {
25    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
26    pub symbol: Option<String>,
27    #[serde(rename = "calculationType", skip_serializing_if = "Option::is_none")]
28    pub calculation_type: Option<String>,
29    #[serde(rename = "bucketCount", skip_serializing_if = "Option::is_none")]
30    pub bucket_count: Option<i64>,
31    #[serde(rename = "bucketWidthMs", skip_serializing_if = "Option::is_none")]
32    pub bucket_width_ms: Option<i64>,
33    #[serde(
34        rename = "externalCalculationId",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub external_calculation_id: Option<i64>,
38}
39
40impl ReferencePriceCalculationResponse {
41    #[must_use]
42    pub fn new() -> ReferencePriceCalculationResponse {
43        ReferencePriceCalculationResponse {
44            symbol: None,
45            calculation_type: None,
46            bucket_count: None,
47            bucket_width_ms: None,
48            external_calculation_id: None,
49        }
50    }
51}