binance_client/http_exchange_api_v2/
response.rs

1//!
2//! The Binance Exchange API v2 HTTP response.
3//!
4
5use serde::Deserialize;
6
7///
8/// The Binance Exchange API v2 HTTP response.
9///
10#[derive(Debug, Deserialize, Clone)]
11pub struct Response<T> {
12    /// The response code.
13    pub code: String,
14    /// The response message. Usually `null`.
15    pub message: Option<String>,
16    /// The response message detail. Usually `null`.
17    pub message_detail: Option<String>,
18    /// The response data. May be `null` if requested by the symbol name.
19    pub data: Option<T>,
20    /// The response status.
21    pub success: bool,
22}