pub struct EarthCycle {
pub id: Option<String>,
pub activation: Option<String>,
pub expiry: Option<String>,
pub is_day: bool,
pub time_left: 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§time_left: StringImplementations§
Source§impl EarthCycle
impl EarthCycle
pub fn new(is_day: bool, time_left: String) -> EarthCycle
Trait Implementations§
Source§impl Clone for EarthCycle
impl Clone for EarthCycle
Source§fn clone(&self) -> EarthCycle
fn clone(&self) -> EarthCycle
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 EarthCycle
impl Debug for EarthCycle
Source§impl Default for EarthCycle
impl Default for EarthCycle
Source§fn default() -> EarthCycle
fn default() -> EarthCycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EarthCycle
impl<'de> Deserialize<'de> for EarthCycle
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 EarthCycle
impl PartialEq for EarthCycle
Source§impl Serialize for EarthCycle
impl Serialize for EarthCycle
impl StructuralPartialEq for EarthCycle
Auto Trait Implementations§
impl Freeze for EarthCycle
impl RefUnwindSafe for EarthCycle
impl Send for EarthCycle
impl Sync for EarthCycle
impl Unpin for EarthCycle
impl UnwindSafe for EarthCycle
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