warframe_client/models/
cetus_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 CetusCycle {
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 = "isDay")]
26    pub is_day: bool,
27    /// Describes the current time. e.g. \"day\" or \"night\"
28    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
29    pub state: Option<String>,
30    #[serde(rename = "timeLeft")]
31    pub time_left: String,
32    #[serde(rename = "isCetus")]
33    pub is_cetus: bool,
34    /// A short description of the remaining time until the next day/night change.
35    #[serde(rename = "shortString", skip_serializing_if = "Option::is_none")]
36    pub short_string: Option<String>,
37}
38
39impl CetusCycle {
40    pub fn new(is_day: bool, time_left: String, is_cetus: bool) -> CetusCycle {
41        CetusCycle {
42            id: None,
43            activation: None,
44            expiry: None,
45            is_day,
46            state: None,
47            time_left,
48            is_cetus,
49            short_string: None,
50        }
51    }
52}
53