warframe_client/models/
nightwave.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 Nightwave {
16    /// unique identifier for this object/event/thing
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// ISO-8601 formatted timestamp for when the event began
20    #[serde(rename = "activation", skip_serializing_if = "Option::is_none")]
21    pub activation: Option<String>,
22    /// A timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) representing a specific point in time. This format is commonly used in APIs to ensure consistent date and time representation. The timestamp is in UTC (Coordinated Universal Time) and does not include any timezone offset. It is used to represent events, deadlines, or any time-related information in a standardized way. Example: \"2023-10-01T12:00:00Z\" represents October 1, 2023, at 12:00 PM UTC. 
23    #[serde(rename = "expiry", skip_serializing_if = "Option::is_none")]
24    pub expiry: Option<String>,
25    #[serde(rename = "params", skip_serializing_if = "Option::is_none")]
26    pub params: Option<serde_json::Value>,
27    #[serde(rename = "rewardTypes", skip_serializing_if = "Option::is_none")]
28    pub reward_types: Option<Vec<String>>,
29    #[serde(rename = "season", skip_serializing_if = "Option::is_none")]
30    pub season: Option<f64>,
31    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
32    pub tag: Option<String>,
33    #[serde(rename = "phase", skip_serializing_if = "Option::is_none")]
34    pub phase: Option<f64>,
35    #[serde(rename = "possibleChallenges", skip_serializing_if = "Option::is_none")]
36    pub possible_challenges: Option<Vec<models::NightwaveChallenge>>,
37    #[serde(rename = "activeChallenges", skip_serializing_if = "Option::is_none")]
38    pub active_challenges: Option<Vec<models::NightwaveChallenge>>,
39}
40
41impl Nightwave {
42    pub fn new() -> Nightwave {
43        Nightwave {
44            id: None,
45            activation: None,
46            expiry: None,
47            params: None,
48            reward_types: None,
49            season: None,
50            tag: None,
51            phase: None,
52            possible_challenges: None,
53            active_challenges: None,
54        }
55    }
56}
57