warframe_client/models/
alert.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 Alert {
16    /// Mission to be completed to earn the reward
17    #[serde(rename = "mission")]
18    pub mission: Box<models::Mission>,
19    #[serde(rename = "rewardTypes")]
20    pub reward_types: Vec<models::RewardType>,
21}
22
23impl Alert {
24    pub fn new(mission: models::Mission, reward_types: Vec<models::RewardType>) -> Alert {
25        Alert {
26            mission: Box::new(mission),
27            reward_types,
28        }
29    }
30}
31