warframe_client/models/
shallow_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 ShallowItem {
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}
31
32impl ShallowItem {
33    pub fn new() -> ShallowItem {
34        ShallowItem {
35            name: None,
36            unique_name: None,
37            description: None,
38            r#type: None,
39            tradable: None,
40            category: None,
41            product_category: None,
42        }
43    }
44}
45