pub enum TimestampComponent {
FullYear,
Month,
Date,
DayOfMonth,
DayOfWeek,
DayOfYear,
Hours,
Minutes,
Seconds,
Milliseconds,
}Expand description
Timestamp accessor component.
Variants§
FullYear
Full 4-digit year.
Month
Month (0-11, 0 = January).
Date
Day of month (1-31, 1-indexed).
DayOfMonth
Day of month (0-30, 0-indexed).
DayOfWeek
Day of week (0-6, 0 = Sunday).
DayOfYear
Day of year (0-365).
Hours
Hours (0-23).
Minutes
Minutes (0-59).
Seconds
Seconds (0-59).
Milliseconds
Milliseconds (0-999).
Implementations§
Trait Implementations§
Source§impl Clone for TimestampComponent
impl Clone for TimestampComponent
Source§fn clone(&self) -> TimestampComponent
fn clone(&self) -> TimestampComponent
Returns a duplicate of the value. Read more
1.0.0 · 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 TimestampComponent
impl Debug for TimestampComponent
Source§impl PartialEq for TimestampComponent
impl PartialEq for TimestampComponent
impl Copy for TimestampComponent
impl Eq for TimestampComponent
impl StructuralPartialEq for TimestampComponent
Auto Trait Implementations§
impl Freeze for TimestampComponent
impl RefUnwindSafe for TimestampComponent
impl Send for TimestampComponent
impl Sync for TimestampComponent
impl Unpin for TimestampComponent
impl UnsafeUnpin for TimestampComponent
impl UnwindSafe for TimestampComponent
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