/*
* Binance Options API
*
* OpenAPI specification for Binance exchange - Options API
*
* The version of the OpenAPI document: 0.2.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::options::models;
use serde::{Deserialize, Serialize};
/// ApiError : binance API error
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApiError {
#[serde(rename = "code", skip_serializing_if = "Option::is_none")]
pub code: Option<i32>,
#[serde(rename = "msg", skip_serializing_if = "Option::is_none")]
pub msg: Option<String>,
}
impl ApiError {
/// binance API error
pub fn new() -> ApiError {
ApiError {
code: None,
msg: None,
}
}
}