oanda_v20_openapi/models/error403.rs
1/*
2 * OANDA v20 API
3 *
4 * The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
5 *
6 * The version of the OpenAPI document: 0.2.1
7 * Contact: jmicoud02@gmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Error403 : Client error 403, forbidden
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Error403 {
17 /// The code of the error that has occurred. This field may not be returned for some errors.
18 #[serde(rename = "errorCode", skip_serializing_if = "Option::is_none")]
19 pub error_code: Option<String>,
20 /// The human-readable description of the error that has occurred.
21 #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
22 pub error_message: Option<String>,
23}
24
25impl Error403 {
26 /// Client error 403, forbidden
27 pub fn new() -> Error403 {
28 Error403 {
29 error_code: None,
30 error_message: None,
31 }
32 }
33}
34