Enum IntervalUnit
pub enum IntervalUnit {
YearMonth,
DayTime,
MonthDayNano,
}
Expand description
YEAR_MONTH, DAY_TIME, MONTH_DAY_NANO interval in SQL style.
Variants§
YearMonth
Indicates the number of elapsed whole months, stored as 4-byte integers.
DayTime
Indicates the number of elapsed days and milliseconds, stored as 2 contiguous 32-bit integers (days, milliseconds) (8-bytes in total).
MonthDayNano
A triple of the number of elapsed months, days, and nanoseconds. The values are stored contiguously in 16 byte blocks. Months and days are encoded as 32 bit integers and nanoseconds is encoded as a 64 bit integer. All integers are signed. Each field is independent (e.g. there is no constraint that nanoseconds have the same sign as days or that the quantity of nanoseconds represents less than a day’s worth of time).
Trait Implementations§
§impl Clone for IntervalUnit
impl Clone for IntervalUnit
§fn clone(&self) -> IntervalUnit
fn clone(&self) -> IntervalUnit
Returns a copy 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 more§impl Debug for IntervalUnit
impl Debug for IntervalUnit
§impl<'de> Deserialize<'de> for IntervalUnit
impl<'de> Deserialize<'de> for IntervalUnit
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntervalUnit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntervalUnit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for IntervalUnit
impl Hash for IntervalUnit
§impl Ord for IntervalUnit
impl Ord for IntervalUnit
§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
§impl PartialOrd for IntervalUnit
impl PartialOrd for IntervalUnit
§impl Serialize for IntervalUnit
impl Serialize for IntervalUnit
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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.