useserde::Deserialize;useserde::Serialize;/// Whole seconds since the Unix epoch supplied by a runtime adapter.
////// The type contains no clock access. It only gives the measurement state
/// relation an ordered, serializable time coordinate.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]pubstructUnixTime(u64);implUnixTime{/// The Unix epoch.
pubconstEPOCH:Self=Self(0);/// Construct a timestamp from whole seconds since the Unix epoch.
pubconstfnfrom_secs(seconds:u64)->Self{Self(seconds)}/// Return whole seconds since the Unix epoch.
pubconstfnas_secs(self)->u64{self.0}}