pub enum IntervalFields {
Show 13 variants
Year,
Month,
Day,
Hour,
Minute,
Second,
YearToMonth,
DayToHour,
DayToMinute,
DayToSecond,
HourToMinute,
HourToSecond,
MinuteToSecond,
}Expand description
Fields for Postgres INTERVAL type.
Variants§
Year
YEAR field
Month
MONTH field
Day
DAY field
Hour
HOUR field
Minute
MINUTE field
Second
SECOND field
YearToMonth
YEAR TO MONTH field
DayToHour
DAY TO HOUR field
DayToMinute
DAY TO MINUTE field
DayToSecond
DAY TO SECOND field
HourToMinute
HOUR TO MINUTE field
HourToSecond
HOUR TO SECOND field
MinuteToSecond
MINUTE TO SECOND field
Trait Implementations§
Source§impl Clone for IntervalFields
impl Clone for IntervalFields
Source§fn clone(&self) -> IntervalFields
fn clone(&self) -> IntervalFields
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 IntervalFields
impl Debug for IntervalFields
Source§impl Display for IntervalFields
impl Display for IntervalFields
Source§impl Hash for IntervalFields
impl Hash for IntervalFields
Source§impl Ord for IntervalFields
impl Ord for IntervalFields
Source§fn cmp(&self, other: &IntervalFields) -> Ordering
fn cmp(&self, other: &IntervalFields) -> Ordering
1.21.0 · 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
Source§impl PartialEq for IntervalFields
impl PartialEq for IntervalFields
Source§impl PartialOrd for IntervalFields
impl PartialOrd for IntervalFields
Source§impl Visit for IntervalFields
impl Visit for IntervalFields
Source§impl VisitMut for IntervalFields
impl VisitMut for IntervalFields
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Copy for IntervalFields
impl Eq for IntervalFields
impl StructuralPartialEq for IntervalFields
Auto Trait Implementations§
impl Freeze for IntervalFields
impl RefUnwindSafe for IntervalFields
impl Send for IntervalFields
impl Sync for IntervalFields
impl Unpin for IntervalFields
impl UnsafeUnpin for IntervalFields
impl UnwindSafe for IntervalFields
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