warframe_client/models/
riven_statistic.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/// RivenStatistic : A colleciton of rivens about a specific weapon's riven sales
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RivenStatistic {
17    #[serde(rename = "itemType", skip_serializing_if = "Option::is_none")]
18    pub item_type: Option<String>,
19    #[serde(rename = "compatability", skip_serializing_if = "Option::is_none")]
20    pub compatability: Option<String>,
21    #[serde(rename = "rerolled", skip_serializing_if = "Option::is_none")]
22    pub rerolled: Option<bool>,
23    #[serde(rename = "avg", skip_serializing_if = "Option::is_none")]
24    pub avg: Option<f32>,
25    #[serde(rename = "stddev", skip_serializing_if = "Option::is_none")]
26    pub stddev: Option<f32>,
27    #[serde(rename = "min", skip_serializing_if = "Option::is_none")]
28    pub min: Option<f32>,
29    #[serde(rename = "max", skip_serializing_if = "Option::is_none")]
30    pub max: Option<f32>,
31    #[serde(rename = "pop", skip_serializing_if = "Option::is_none")]
32    pub pop: Option<f32>,
33    #[serde(rename = "median", skip_serializing_if = "Option::is_none")]
34    pub median: Option<f32>,
35}
36
37impl RivenStatistic {
38    /// A colleciton of rivens about a specific weapon's riven sales
39    pub fn new() -> RivenStatistic {
40        RivenStatistic {
41            item_type: None,
42            compatability: None,
43            rerolled: None,
44            avg: None,
45            stddev: None,
46            min: None,
47            max: None,
48            pop: None,
49            median: None,
50        }
51    }
52}
53