pub struct Interval {
pub start_field: Option<(IntervalField, Span)>,
pub end_field: Option<(IntervalField, Span)>,
pub precision: Option<(usize, Span)>,
}Expand description
Interior of Type::Interval.
Fields§
§start_field: Option<(IntervalField, Span)>The first (or only) field qualifier, e.g. YEAR in INTERVAL YEAR TO MONTH.
end_field: Option<(IntervalField, Span)>The upper-bound field, e.g. MONTH in INTERVAL YEAR TO MONTH.
precision: Option<(usize, Span)>Fractional-seconds precision; only meaningful when the rightmost unit is SECOND.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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