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