warframe_client/models/inline_object.rs
1/*
2 * WarframeStat.us API
3 *
4 * Simple API for data from the game Warframe. [Parser Docs](https://wfcd.github.io/warframe-worldstate-parser/) [Items Types](https://github.com/WFCD/warframe-items/blob/master/index.d.ts)
5 *
6 * The version of the OpenAPI document: 2.0.8
7 * Contact: tobiah@protonmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InlineObject {
16 /// Description of error
17 #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
18 pub error: Option<String>,
19 /// HTTP status code associated with error
20 #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
21 pub code: Option<i32>,
22}
23
24impl InlineObject {
25 pub fn new() -> InlineObject {
26 InlineObject {
27 error: None,
28 code: None,
29 }
30 }
31}
32