pub struct Status {
pub timestamp: DateTime<Utc>,
pub event: String,
pub contents: Option<StatusContents>,
}
Expand description
Struct representing the live status of the player. Sometimes the file does exist, but might not contain any data (for example when just starting the game.)
Fields§
§timestamp: DateTime<Utc>
The timestamp when the status was updated.
event: String
The event of the status. This is always set to ‘Status’.
contents: Option<StatusContents>
In some cases the status file might not contain any data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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