pub struct Select {Show 16 fields
pub with: Option<WithClause>,
pub distinct: bool,
pub distinct_on: Vec<Expr>,
pub projection: Vec<SelectItem>,
pub from: Vec<FromItem>,
pub selection: Option<Expr>,
pub group_by: Option<Vec<GroupByItem>>,
pub having: Option<Expr>,
pub windows: Vec<NamedWindow>,
pub qualify: Option<Expr>,
pub set_operations: Vec<SetOperation>,
pub order_by: Vec<OrderByExpr>,
pub limit: Option<Expr>,
pub offset: Option<Expr>,
pub limit_with_ties: bool,
pub span: Span,
}Fields§
§with: Option<WithClause>§distinct: bool§distinct_on: Vec<Expr>SELECT DISTINCT ON (expr, …) key expressions in source order.
Empty when the clause is absent (issue #150, contract 0.11.0).
Mutually exclusive with distinct by grammar.
projection: Vec<SelectItem>§from: Vec<FromItem>§selection: Option<Expr>§group_by: Option<Vec<GroupByItem>>§having: Option<Expr>§windows: Vec<NamedWindow>§qualify: Option<Expr>§set_operations: Vec<SetOperation>§order_by: Vec<OrderByExpr>§limit: Option<Expr>§offset: Option<Expr>§limit_with_ties: boolFETCH … WITH TIES: the limit keeps every peer of the final row under the ORDER BY sort key (issue #152, contract 0.10.0).
span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for Select
impl<'de> Deserialize<'de> for Select
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
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
Blanket Implementations§
impl<T> Allocation for T
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