binance_sdk/spot/websocket_api/models/
ticker_price_response.rs1#![allow(unused_imports)]
15use crate::spot::websocket_api::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
20#[serde(untagged)]
21pub enum TickerPriceResponse {
22 TickerPriceResponse1(Box<models::TickerPriceResponse1>),
23 TickerPriceResponse2(Box<models::TickerPriceResponse2>),
24 Other(serde_json::Value),
25}
26
27impl Default for TickerPriceResponse {
28 fn default() -> Self {
29 Self::TickerPriceResponse1(Default::default())
30 }
31}