pub struct MinMax {
pub aggs: Vec<[Query; 2]>,
pub targets: Vec<Expr>,
pub having: Option<Expr>,
}Expand description
MinMaxAggInfo: the form of a query whose aggregate calls are each min or max, with a subquery for each aggregate call that reads the first value in the order of its sort operator.
Fields§
§aggs: Vec<[Query; 2]>The two subqueries of each aggregate call that is not the same as an earlier one: the first one has the nulls first for max and last for min, as build_minmax_path tries it first, and the second one has the other order of the nulls.
targets: Vec<Expr>The targets of the query, with a subquery of aggs in the place of each aggregate call. A subquery is the first subquery of its aggregate call.
having: Option<Expr>The HAVING condition of the query with the same subqueries.
Trait Implementations§
impl StructuralPartialEq for MinMax
Auto Trait Implementations§
impl Freeze for MinMax
impl RefUnwindSafe for MinMax
impl Send for MinMax
impl Sync for MinMax
impl Unpin for MinMax
impl UnsafeUnpin for MinMax
impl UnwindSafe for MinMax
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