pub enum IntervalUnit {
YearMonth,
DayTime,
MonthDayNano,
}Expand description
The unit of calendar intervals
Variants§
YearMonth
An interval as the number of months, stored as i32
DayTime
An interval as the number of days, stored as i32, and milliseconds, stored as i32
MonthDayNano
An interval as the number of months (stored as i32), days (stored as i32) and nanoseconds (stored as i64)
Trait Implementations§
Source§impl Clone for IntervalUnit
impl Clone for IntervalUnit
impl Copy for IntervalUnit
Source§impl Debug for IntervalUnit
impl Debug for IntervalUnit
Source§impl<'de> Deserialize<'de> for IntervalUnit
impl<'de> Deserialize<'de> for IntervalUnit
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 IntervalUnit
impl Display for IntervalUnit
impl Eq for IntervalUnit
Source§impl FromStr for IntervalUnit
impl FromStr for IntervalUnit
Source§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
Source§impl Serialize for IntervalUnit
impl Serialize for IntervalUnit
impl StructuralPartialEq for IntervalUnit
§impl TryFrom<IntervalUnit> for IntervalUnit
Conversion from arrow interval units (requires one of the arrow-{version} features)
impl TryFrom<IntervalUnit> for IntervalUnit
Conversion from arrow interval units (requires one of the arrow-{version} features)
§type Error = MarrowError
type Error = MarrowError
The type returned in the event of a conversion error.
§fn try_from(value: IntervalUnit) -> Result<Self>
fn try_from(value: IntervalUnit) -> Result<Self>
Performs the conversion.
§impl TryFrom<IntervalUnit> for IntervalUnit
Conversion to arrow interval units (requires one of the arrow-{version} features)
impl TryFrom<IntervalUnit> for IntervalUnit
Conversion to arrow interval units (requires one of the arrow-{version} features)
§type Error = MarrowError
type Error = MarrowError
The type returned in the event of a conversion error.
§fn try_from(value: IntervalUnit) -> Result<Self>
fn try_from(value: IntervalUnit) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Forget for IntervalUnit
impl Freeze for IntervalUnit
impl Move for IntervalUnit
impl RefUnwindSafe for IntervalUnit
impl Send for IntervalUnit
impl Sync for IntervalUnit
impl Unpin for IntervalUnit
impl UnsafeUnpin for IntervalUnit
impl UnwindSafe for IntervalUnit
Blanket Implementations§
impl<T> Allocation for T
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