pub struct PatchTime {
pub time: Option<f64>,
}Expand description
System time PATCH JSON schema.
This JSON schema corresponds to GET requests on /api/time. It contains the
current system time.
Fields§
§time: Option<f64>Number of milliseconds since UNIX timestamp.
This uses the same format as JavaScript Date.now().
Trait Implementations§
source§impl<'de> Deserialize<'de> for PatchTime
impl<'de> Deserialize<'de> for PatchTime
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 PatchTime
impl PartialEq for PatchTime
impl StructuralPartialEq for PatchTime
Auto Trait Implementations§
impl RefUnwindSafe for PatchTime
impl Send for PatchTime
impl Sync for PatchTime
impl Unpin for PatchTime
impl UnwindSafe for PatchTime
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