pub enum IntervalUnit {
Show 20 variants
Microsecond,
Second,
Minute,
Hour,
Day,
Week,
Month,
Quarter,
Year,
SecondMicrosecond,
MinuteMicrosecond,
MinuteSecond,
HourMicrosecond,
HourSecond,
HourMinute,
DayMicrosecond,
DaySecond,
DayMinute,
DayHour,
YearMonth,
}Expand description
Interval unit for INTERVAL expressions SQL:1999 Section 6.12: Interval literal Used in INTERVAL ‘5’ DAY, DATE_ADD(), etc.
Variants§
Microsecond
Simple units
Second
Minute
Hour
Day
Week
Month
Quarter
Year
SecondMicrosecond
Compound units (for MySQL compatibility) SECOND_MICROSECOND
MinuteMicrosecond
MINUTE_MICROSECOND
MinuteSecond
MINUTE_SECOND
HourMicrosecond
HOUR_MICROSECOND
HourSecond
HOUR_SECOND
HourMinute
HOUR_MINUTE
DayMicrosecond
DAY_MICROSECOND
DaySecond
DAY_SECOND
DayMinute
DAY_MINUTE
DayHour
DAY_HOUR
YearMonth
YEAR_MONTH
Trait Implementations§
Source§impl Clone for IntervalUnit
impl Clone for IntervalUnit
Source§fn clone(&self) -> IntervalUnit
fn clone(&self) -> IntervalUnit
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 IntervalUnit
impl Debug for IntervalUnit
Source§impl From<IntervalUnit> for IntervalUnit
impl From<IntervalUnit> for IntervalUnit
Source§fn from(u: IntervalUnit) -> Self
fn from(u: IntervalUnit) -> Self
Converts to this type from the input type.
Source§impl Hash for IntervalUnit
impl Hash for IntervalUnit
Source§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
Source§impl ToSql for IntervalUnit
impl ToSql for IntervalUnit
impl Eq for IntervalUnit
impl StructuralPartialEq for IntervalUnit
Auto Trait Implementations§
impl Freeze for IntervalUnit
impl RefUnwindSafe for IntervalUnit
impl Send for IntervalUnit
impl Sync for IntervalUnit
impl Unpin for IntervalUnit
impl UnwindSafe for IntervalUnit
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