binance/options/models/
api_error.rs

1/*
2 * Binance Options API
3 *
4 * OpenAPI specification for Binance exchange - Options API
5 *
6 * The version of the OpenAPI document: 0.3.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::options::models;
12use serde::{Deserialize, Serialize};
13
14/// ApiError : binance API error
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApiError {
17    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
18    pub code: Option<i32>,
19    #[serde(rename = "msg", skip_serializing_if = "Option::is_none")]
20    pub msg: Option<String>,
21}
22
23impl ApiError {
24    /// binance API error
25    pub fn new() -> ApiError {
26        ApiError {
27            code: None,
28            msg: None,
29        }
30    }
31}
32