warframe_client/models/
cambion_cycle.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 CambionCycle {
16    #[serde(rename = "id")]
17    pub id: String,
18    /// 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. 
19    #[serde(rename = "expiry")]
20    pub expiry: String,
21    /// 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. 
22    #[serde(rename = "activation")]
23    pub activation: String,
24    #[serde(rename = "state")]
25    pub state: State,
26    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
27    pub active: Option<Active>,
28}
29
30impl CambionCycle {
31    pub fn new(id: String, expiry: String, activation: String, state: State) -> CambionCycle {
32        CambionCycle {
33            id,
34            expiry,
35            activation,
36            state,
37            active: None,
38        }
39    }
40}
41/// 
42#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
43pub enum State {
44    #[serde(rename = "vome")]
45    Vome,
46    #[serde(rename = "fass")]
47    Fass,
48}
49
50impl Default for State {
51    fn default() -> State {
52        Self::Vome
53    }
54}
55/// 
56#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
57pub enum Active {
58    #[serde(rename = "vome")]
59    Vome,
60    #[serde(rename = "fass")]
61    Fass,
62}
63
64impl Default for Active {
65    fn default() -> Active {
66        Self::Vome
67    }
68}
69