/*
* OANDA v20 API
*
* The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
*
* The version of the OpenAPI document: 0.2.1
* Contact: jmicoud02@gmail.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Error401 : Client error 401, unauthorized.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Error401 {
/// The code of the error that has occurred. This field may not be returned for some errors.
#[serde(rename = "errorCode", skip_serializing_if = "Option::is_none")]
pub error_code: Option<String>,
/// The human-readable description of the error that has occurred.
#[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
}
impl Error401 {
/// Client error 401, unauthorized.
pub fn new() -> Error401 {
Error401 {
error_code: None,
error_message: None,
}
}
}