pub struct QueryExpr {
pub source: String,
pub alias: Option<String>,
pub joins: Vec<JoinClause>,
pub filter: Option<Expr>,
pub order: Option<OrderClause>,
pub limit: Option<Expr>,
pub offset: Option<Expr>,
pub projection: Option<Vec<ProjectionField>>,
pub aggregation: Option<AggregateExpr>,
pub distinct: bool,
pub group_by: Option<GroupByClause>,
}Expand description
A query expression: Type [join …]* [filter …] [order …] [limit …] [{ projection }]
Fields§
§source: String§alias: Option<String>Optional alias for the primary source (e.g. User as u). Used to
disambiguate qualified column references in join queries. None for
single-table queries.
joins: Vec<JoinClause>Zero or more join clauses chained to the primary source. For a single-table query this is always empty so existing code paths are untouched.
filter: Option<Expr>§order: Option<OrderClause>§limit: Option<Expr>§offset: Option<Expr>§projection: Option<Vec<ProjectionField>>§aggregation: Option<AggregateExpr>§distinct: bool§group_by: Option<GroupByClause>Trait Implementations§
impl StructuralPartialEq for QueryExpr
Auto Trait Implementations§
impl Freeze for QueryExpr
impl RefUnwindSafe for QueryExpr
impl Send for QueryExpr
impl Sync for QueryExpr
impl Unpin for QueryExpr
impl UnsafeUnpin for QueryExpr
impl UnwindSafe for QueryExpr
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