pub struct TimestampParts {
pub year: u32,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
pub day_name: &'static str,
pub day_name_short: &'static str,
pub month_name: &'static str,
pub month_name_short: &'static str,
}Expand description
Decomposed timestamp – supplied by the host (typically
derived from chrono / time if it’s already a dep) or
computed at variable-resolve time. Tests use fixed_now to
pin output.
Fields§
§year: u32§month: u32§day: u32§hour: u32§minute: u32§second: u32§day_name: &'static str§day_name_short: &'static str§month_name: &'static str§month_name_short: &'static strTrait Implementations§
Source§impl Clone for TimestampParts
impl Clone for TimestampParts
Source§fn clone(&self) -> TimestampParts
fn clone(&self) -> TimestampParts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimestampParts
impl Debug for TimestampParts
impl Eq for TimestampParts
Source§impl PartialEq for TimestampParts
impl PartialEq for TimestampParts
impl StructuralPartialEq for TimestampParts
Auto Trait Implementations§
impl Freeze for TimestampParts
impl RefUnwindSafe for TimestampParts
impl Send for TimestampParts
impl Sync for TimestampParts
impl Unpin for TimestampParts
impl UnsafeUnpin for TimestampParts
impl UnwindSafe for TimestampParts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.