1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
//!
//! The Binance HTTP response.
//!

use serde::Deserialize;

use crate::data::error::Error as ResponseError;

///
/// The binance HTTP response wrapper.
///
#[derive(Debug, Deserialize)]
#[serde(untagged)]
pub enum Response<T> {
    /// The successful response.
    Ok(T),
    /// The error response.
    Error(ResponseError),
}