warframe_client/models/
invasion_faction.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 InvasionFaction {
16    #[serde(rename = "reward", skip_serializing_if = "Option::is_none")]
17    pub reward: Option<Box<models::Reward>>,
18    /// Localized name of fation
19    #[serde(rename = "faction", skip_serializing_if = "Option::is_none")]
20    pub faction: Option<models::Faction>,
21    /// Unlocalized name of faction
22    #[serde(rename = "factionKey", skip_serializing_if = "Option::is_none")]
23    pub faction_key: Option<models::Faction>,
24}
25
26impl InvasionFaction {
27    pub fn new() -> InvasionFaction {
28        InvasionFaction {
29            reward: None,
30            faction: None,
31            faction_key: None,
32        }
33    }
34}
35