warframe_client/models/
drops_inner.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 DropsInner {
16    #[serde(rename = "item")]
17    pub item: String,
18    #[serde(rename = "chance")]
19    pub chance: f32,
20    #[serde(rename = "place")]
21    pub place: String,
22    #[serde(rename = "rarity")]
23    pub rarity: String,
24}
25
26impl DropsInner {
27    pub fn new(item: String, chance: f32, place: String, rarity: String) -> DropsInner {
28        DropsInner {
29            item,
30            chance,
31            place,
32            rarity,
33        }
34    }
35}
36