binance_client/http_api_v3/
response.rs

1//!
2//! The Binance API v3 HTTP response.
3//!
4
5use serde::Deserialize;
6
7use crate::http_api_v3::data::error::Error as ResponseError;
8
9///
10/// The Binance API v3 HTTP response.
11///
12#[derive(Debug, Deserialize, Clone)]
13#[serde(untagged)]
14pub enum Response<T> {
15    /// The successful response.
16    Ok(T),
17    /// The error response.
18    Error(ResponseError),
19}