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