warframe_client/models/
item.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 Item {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "uniqueName", skip_serializing_if = "Option::is_none")]
19    pub unique_name: Option<String>,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
23    pub r#type: Option<String>,
24    #[serde(rename = "tradable", skip_serializing_if = "Option::is_none")]
25    pub tradable: Option<bool>,
26    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
27    pub category: Option<String>,
28    #[serde(rename = "productCategory", skip_serializing_if = "Option::is_none")]
29    pub product_category: Option<String>,
30    #[serde(rename = "patchlogs", skip_serializing_if = "Option::is_none")]
31    pub patchlogs: Option<Vec<models::Patchlog>>,
32    #[serde(rename = "components", skip_serializing_if = "Option::is_none")]
33    pub components: Option<Vec<models::ShallowItem>>,
34    #[serde(rename = "introduced", skip_serializing_if = "Option::is_none")]
35    pub introduced: Option<Box<models::Introduced>>,
36    #[serde(rename = "estimatedVaultDate", skip_serializing_if = "Option::is_none")]
37    pub estimated_vault_date: Option<String>,
38}
39
40impl Item {
41    pub fn new() -> Item {
42        Item {
43            name: None,
44            unique_name: None,
45            description: None,
46            r#type: None,
47            tradable: None,
48            category: None,
49            product_category: None,
50            patchlogs: None,
51            components: None,
52            introduced: None,
53            estimated_vault_date: None,
54        }
55    }
56}
57