pub struct WindowSpec {
pub partition_by: Option<Vec<Expression>>,
pub order_by: Option<Vec<OrderByItem>>,
pub frame: Option<WindowFrame>,
}Expand description
Window specification (OVER clause)
Fields§
§partition_by: Option<Vec<Expression>>PARTITION BY clause - divides rows into partitions Example: PARTITION BY department_id
order_by: Option<Vec<OrderByItem>>ORDER BY clause - defines order within each partition Example: ORDER BY salary DESC, hire_date
frame: Option<WindowFrame>Frame clause - defines which rows are included in the window frame Example: ROWS BETWEEN 2 PRECEDING AND CURRENT ROW
Trait Implementations§
Source§impl Clone for WindowSpec
impl Clone for WindowSpec
Source§fn clone(&self) -> WindowSpec
fn clone(&self) -> WindowSpec
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 WindowSpec
impl Debug for WindowSpec
Source§impl PartialEq for WindowSpec
impl PartialEq for WindowSpec
Source§impl ToSql for WindowSpec
impl ToSql for WindowSpec
impl StructuralPartialEq for WindowSpec
Auto Trait Implementations§
impl Freeze for WindowSpec
impl RefUnwindSafe for WindowSpec
impl Send for WindowSpec
impl Sync for WindowSpec
impl Unpin for WindowSpec
impl UnwindSafe for WindowSpec
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