warframe_client/models/
syndicate_job.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/// SyndicateJob : A Job for a syndicate. Often called a bounty.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SyndicateJob {
17    /// Timestamp for when the job becomes active
18    #[serde(rename = "activation", skip_serializing_if = "Option::is_none")]
19    pub activation: Option<String>,
20    /// Timestamp for when the job becomes inactive
21    #[serde(rename = "expiry", skip_serializing_if = "Option::is_none")]
22    pub expiry: Option<String>,
23    /// Reward Pool for the job
24    #[serde(rename = "rewardPool", skip_serializing_if = "Option::is_none")]
25    pub reward_pool: Option<Vec<String>>,
26    /// Reward Pool items as drops for jobs
27    #[serde(rename = "rewardPoolDrops", skip_serializing_if = "Option::is_none")]
28    pub reward_pool_drops: Option<Vec<Vec<models::DropsInner>>>,
29    /// What type of Job (Bounty) it is
30    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
31    pub r#type: Option<String>,
32    /// Array of enemy levels
33    #[serde(rename = "enemyLevels", skip_serializing_if = "Option::is_none")]
34    pub enemy_levels: Option<Vec<f64>>,
35    /// Stages of standing rewards.
36    #[serde(rename = "standingStages", skip_serializing_if = "Option::is_none")]
37    pub standing_stages: Option<Vec<f64>>,
38    /// Minimum Mastery Rank required to perform a job.
39    #[serde(rename = "minMR", skip_serializing_if = "Option::is_none")]
40    pub min_mr: Option<f64>,
41}
42
43impl SyndicateJob {
44    /// A Job for a syndicate. Often called a bounty.
45    pub fn new() -> SyndicateJob {
46        SyndicateJob {
47            activation: None,
48            expiry: None,
49            reward_pool: None,
50            reward_pool_drops: None,
51            r#type: None,
52            enemy_levels: None,
53            standing_stages: None,
54            min_mr: None,
55        }
56    }
57}
58