[][src]Struct sqlparser::ast::WindowFrame

pub struct WindowFrame {
    pub units: WindowFrameUnits,
    pub start_bound: WindowFrameBound,
    pub end_bound: Option<WindowFrameBound>,
}

Specifies the data processed by a window function, e.g. RANGE UNBOUNDED PRECEDING or ROWS BETWEEN 5 PRECEDING AND CURRENT ROW.

Note: The parser does not validate the specified bounds; the caller should reject invalid bounds like ROWS UNBOUNDED FOLLOWING before execution.

Fields

units: WindowFrameUnitsstart_bound: WindowFrameBoundend_bound: Option<WindowFrameBound>

The right bound of the BETWEEN .. AND clause. The end bound of None indicates the shorthand form (e.g. ROWS 1 PRECEDING), which must behave the same as end_bound = WindowFrameBound::CurrentRow.

Trait Implementations

impl Clone for WindowFrame[src]

impl Debug for WindowFrame[src]

impl Eq for WindowFrame[src]

impl Hash for WindowFrame[src]

impl PartialEq<WindowFrame> for WindowFrame[src]

impl StructuralEq for WindowFrame[src]

impl StructuralPartialEq for WindowFrame[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.