pub struct CetusCycle {
pub id: Option<String>,
pub activation: Option<String>,
pub expiry: Option<String>,
pub is_day: bool,
pub state: Option<String>,
pub time_left: String,
pub is_cetus: bool,
pub short_string: Option<String>,
}Fields§
§id: Option<String>unique identifier for this object/event/thing
activation: Option<String>ISO-8601 formatted timestamp for when the event began
expiry: Option<String>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.
is_day: bool§state: Option<String>Describes the current time. e.g. "day" or "night"
time_left: String§is_cetus: bool§short_string: Option<String>A short description of the remaining time until the next day/night change.
Implementations§
Source§impl CetusCycle
impl CetusCycle
Trait Implementations§
Source§impl Clone for CetusCycle
impl Clone for CetusCycle
Source§fn clone(&self) -> CetusCycle
fn clone(&self) -> CetusCycle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CetusCycle
impl Debug for CetusCycle
Source§impl Default for CetusCycle
impl Default for CetusCycle
Source§fn default() -> CetusCycle
fn default() -> CetusCycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CetusCycle
impl<'de> Deserialize<'de> for CetusCycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CetusCycle
impl PartialEq for CetusCycle
Source§impl Serialize for CetusCycle
impl Serialize for CetusCycle
impl StructuralPartialEq for CetusCycle
Auto Trait Implementations§
impl Freeze for CetusCycle
impl RefUnwindSafe for CetusCycle
impl Send for CetusCycle
impl Sync for CetusCycle
impl Unpin for CetusCycle
impl UnwindSafe for CetusCycle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more