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