Skip to main content

binance_sdk/spot/websocket_api/models/
ticker_response.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, Debug, PartialEq, Serialize, Deserialize)]
25#[serde(untagged)]
26pub enum TickerResponse {
27    TickerResponse1(Box<models::TickerResponse1>),
28    TickerResponse2(Box<models::TickerResponse2>),
29    Other(serde_json::Value),
30}
31
32impl Default for TickerResponse {
33    fn default() -> Self {
34        Self::TickerResponse1(Default::default())
35    }
36}