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
Month
Day
Hour
Minute
Second
YearToMonth
DayToHour
DayToMinute
DayToSecond
HourToMinute
HourToSecond
MinuteToSecond
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<'de> Deserialize<'de> for IntervalFields
impl<'de> Deserialize<'de> for IntervalFields
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Serialize for IntervalFields
impl Serialize for IntervalFields
Source§impl Visit for IntervalFields
impl Visit for IntervalFields
Source§impl VisitMut for IntervalFields
impl VisitMut for IntervalFields
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl 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 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