warframe_client/models/
event.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 Event {
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    /// Maximum score to complete the event
26    #[serde(rename = "maximumScore", skip_serializing_if = "Option::is_none")]
27    pub maximum_score: Option<f64>,
28    /// The current score for the event
29    #[serde(rename = "currentScore", skip_serializing_if = "Option::is_none")]
30    pub current_score: Option<f64>,
31    /// Interval for the first goal
32    #[serde(rename = "smallInterval", skip_serializing_if = "Option::is_none")]
33    pub small_interval: Option<f64>,
34    /// Interval for the second intermediate score
35    #[serde(rename = "largeInterval", skip_serializing_if = "Option::is_none")]
36    pub large_interval: Option<f64>,
37    #[serde(rename = "faction", skip_serializing_if = "Option::is_none")]
38    pub faction: Option<models::Faction>,
39    /// The description or \"subtitle\" for the event.
40    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
41    pub description: Option<String>,
42    /// Tooltip for the event
43    #[serde(rename = "tooltip", skip_serializing_if = "Option::is_none")]
44    pub tooltip: Option<String>,
45    /// Node that the event is taking place on
46    #[serde(rename = "node", skip_serializing_if = "Option::is_none")]
47    pub node: Option<String>,
48    /// Nodes that the event is happening concurrently on
49    #[serde(rename = "concurrentNodes", skip_serializing_if = "Option::is_none")]
50    pub concurrent_nodes: Option<Vec<String>>,
51    /// Node that is being attacked & defended in the event.
52    #[serde(rename = "victimNode", skip_serializing_if = "Option::is_none")]
53    pub victim_node: Option<String>,
54    /// Localized tag for the event score
55    #[serde(rename = "scoreLocTag", skip_serializing_if = "Option::is_none")]
56    pub score_loc_tag: Option<String>,
57    #[serde(rename = "rewards", skip_serializing_if = "Option::is_none")]
58    pub rewards: Option<Vec<models::Reward>>,
59    /// Amount of health remaining for the target
60    #[serde(rename = "health", skip_serializing_if = "Option::is_none")]
61    pub health: Option<f64>,
62    #[serde(rename = "affiliatedWith", skip_serializing_if = "Option::is_none")]
63    pub affiliated_with: Option<models::Syndicate>,
64    #[serde(rename = "jobs", skip_serializing_if = "Option::is_none")]
65    pub jobs: Option<Vec<models::SyndicateJob>>,
66    /// Interim steps, marking progress towards the final goal.
67    #[serde(rename = "interimSteps", skip_serializing_if = "Option::is_none")]
68    pub interim_steps: Option<Vec<models::EventAllOfInterimSteps>>,
69    #[serde(rename = "progressSteps", skip_serializing_if = "Option::is_none")]
70    pub progress_steps: Option<Vec<models::EventAllOfProgressSteps>>,
71    /// Total of progressSteps values.
72    #[serde(rename = "progressTotal", skip_serializing_if = "Option::is_none")]
73    pub progress_total: Option<f64>,
74    /// Whether to show the total score at the end of the mission
75    #[serde(rename = "showTotalAtEndOfMission", skip_serializing_if = "Option::is_none")]
76    pub show_total_at_end_of_mission: Option<bool>,
77    /// Whether the event is personal
78    #[serde(rename = "isPersonal", skip_serializing_if = "Option::is_none")]
79    pub is_personal: Option<bool>,
80    /// Whether the event is communal
81    #[serde(rename = "isCommunity", skip_serializing_if = "Option::is_none")]
82    pub is_community: Option<bool>,
83    /// Drops in the area around the event node
84    #[serde(rename = "regionDrops", skip_serializing_if = "Option::is_none")]
85    pub region_drops: Option<Vec<String>>,
86    /// Archwing Drops in effect while this event is active
87    #[serde(rename = "archwingDrops", skip_serializing_if = "Option::is_none")]
88    pub archwing_drops: Option<Vec<String>>,
89    /// Attempt to summarize event in a short string. (Do not use).
90    #[serde(rename = "asString", skip_serializing_if = "Option::is_none")]
91    pub as_string: Option<String>,
92    /// Miscellaneous metadata in a string provided by Digital Extremes
93    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
94    pub metadata: Option<serde_json::Value>,
95    /// Completion bonus amounts per-stage
96    #[serde(rename = "completionBonuses", skip_serializing_if = "Option::is_none")]
97    pub completion_bonuses: Option<Vec<f64>>,
98    /// Internal string used for unknown purpose
99    #[serde(rename = "scoreVar", skip_serializing_if = "Option::is_none")]
100    pub score_var: Option<String>,
101    /// Alternate Expiry. Use unknown.
102    #[serde(rename = "altExpiry", skip_serializing_if = "Option::is_none")]
103    pub alt_expiry: Option<String>,
104    /// Alternate Activation. Use unknown.
105    #[serde(rename = "altActivation", skip_serializing_if = "Option::is_none")]
106    pub alt_activation: Option<String>,
107    #[serde(rename = "nextAlt", skip_serializing_if = "Option::is_none")]
108    pub next_alt: Option<Box<models::EventAllOfNextAlt>>,
109    /// A unique identifier or category label for the event, used to group or filter related events.
110    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
111    pub tag: Option<String>,
112}
113
114impl Event {
115    pub fn new() -> Event {
116        Event {
117            id: None,
118            activation: None,
119            expiry: None,
120            maximum_score: None,
121            current_score: None,
122            small_interval: None,
123            large_interval: None,
124            faction: None,
125            description: None,
126            tooltip: None,
127            node: None,
128            concurrent_nodes: None,
129            victim_node: None,
130            score_loc_tag: None,
131            rewards: None,
132            health: None,
133            affiliated_with: None,
134            jobs: None,
135            interim_steps: None,
136            progress_steps: None,
137            progress_total: None,
138            show_total_at_end_of_mission: None,
139            is_personal: None,
140            is_community: None,
141            region_drops: None,
142            archwing_drops: None,
143            as_string: None,
144            metadata: None,
145            completion_bonuses: None,
146            score_var: None,
147            alt_expiry: None,
148            alt_activation: None,
149            next_alt: None,
150            tag: None,
151        }
152    }
153}
154