pub struct Window {
pub base: Option<Name>,
pub partition_by: Option<Vec<Expr>>,
pub order_by: Option<Vec<SortedColumn>>,
pub frame_clause: Option<FrameClause>,
}Expand description
Window definition
Fields§
§base: Option<Name>base window name
partition_by: Option<Vec<Expr>>PARTITION BY
order_by: Option<Vec<SortedColumn>>ORDER BY
frame_clause: Option<FrameClause>frame spec
Trait Implementations§
impl Eq for Window
impl StructuralPartialEq for Window
Source§impl ToTokens for Window
impl ToTokens for Window
Source§fn to_tokens_with_context<S: TokenStream + ?Sized, C: ToSqlContext>(
&self,
s: &mut S,
context: &C,
) -> Result<(), S::Error>
fn to_tokens_with_context<S: TokenStream + ?Sized, C: ToSqlContext>( &self, s: &mut S, context: &C, ) -> Result<(), S::Error>
Send token(s) to the specified stream with context
Source§fn to_tokens<S: TokenStream + ?Sized>(&self, s: &mut S) -> Result<(), S::Error>
fn to_tokens<S: TokenStream + ?Sized>(&self, s: &mut S) -> Result<(), S::Error>
Send token(s) to the specified stream
Source§fn to_fmt_with_context<C: ToSqlContext>(
&self,
f: &mut Formatter<'_>,
context: &C,
) -> Result
fn to_fmt_with_context<C: ToSqlContext>( &self, f: &mut Formatter<'_>, context: &C, ) -> Result
Format AST node with context
Source§fn format_with_context<C: ToSqlContext>(
&self,
context: &C,
) -> Result<String, Error>
fn format_with_context<C: ToSqlContext>( &self, context: &C, ) -> Result<String, Error>
Format AST node to string with context
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.