pub enum IntervalUnitSpec {
Simple {
unit: IntervalUnit,
use_plural: bool,
},
Span(IntervalSpan),
ExprSpan(IntervalSpanExpr),
Expr(Box<Expression>),
}Expand description
Specification for interval unit - can be a simple unit, a span (HOUR TO SECOND), or an expression
Variants§
Simple
Simple interval unit (YEAR, MONTH, DAY, etc.)
Span(IntervalSpan)
Interval span (e.g., HOUR TO SECOND)
ExprSpan(IntervalSpanExpr)
Expression-based interval span for Oracle (e.g., DAY(9) TO SECOND(3)) The start and end can be expressions like function calls with precision
Expr(Box<Expression>)
Expression as unit (e.g., CURRENT_DATE, CAST(GETDATE() AS DATE))
Trait Implementations§
Source§impl Clone for IntervalUnitSpec
impl Clone for IntervalUnitSpec
Source§fn clone(&self) -> IntervalUnitSpec
fn clone(&self) -> IntervalUnitSpec
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 IntervalUnitSpec
impl Debug for IntervalUnitSpec
Source§impl<'de> Deserialize<'de> for IntervalUnitSpec
impl<'de> Deserialize<'de> for IntervalUnitSpec
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 PartialEq for IntervalUnitSpec
impl PartialEq for IntervalUnitSpec
Source§impl Serialize for IntervalUnitSpec
impl Serialize for IntervalUnitSpec
impl StructuralPartialEq for IntervalUnitSpec
Auto Trait Implementations§
impl Freeze for IntervalUnitSpec
impl RefUnwindSafe for IntervalUnitSpec
impl Send for IntervalUnitSpec
impl Sync for IntervalUnitSpec
impl Unpin for IntervalUnitSpec
impl UnwindSafe for IntervalUnitSpec
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