pub struct HourStamp(/* private fields */);Expand description
A UTC hour start, YYYY-MM-DDTHH:00:00Z.
Implementations§
Source§impl HourStamp
impl HourStamp
Sourcepub fn of(time: UtcDateTime) -> Self
pub fn of(time: UtcDateTime) -> Self
The hour that holds time (UTC).
pub fn start(&self) -> UtcDateTime
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HourStamp
impl<'de> Deserialize<'de> for HourStamp
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HourStamp
Source§impl Ord for HourStamp
impl Ord for HourStamp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for HourStamp
impl PartialOrd for HourStamp
impl StructuralPartialEq for HourStamp
Auto Trait Implementations§
impl Forget for HourStamp
impl Freeze for HourStamp
impl Move for HourStamp
impl RefUnwindSafe for HourStamp
impl Send for HourStamp
impl Sync for HourStamp
impl Unpin for HourStamp
impl UnsafeUnpin for HourStamp
impl UnwindSafe for HourStamp
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