pub struct GroupingSet {
pub kind: GroupingSetKind,
pub groups: Vec<Expr>,
}Expand description
One grouping element that is itself a set: ROLLUP (a, b), CUBE (a, b),
GROUPING SETS ((a), (b), ()).
From PostgreSQL 17’s grouping_element. Meant to be put into
GroupBy::groups beside plain expressions.
Fields§
§kind: GroupingSetKindWhich kind of set.
groups: Vec<Expr>The elements. For GROUPING SETS these are themselves usually
Expr::Groups.
Implementations§
Source§impl GroupingSet
impl GroupingSet
Sourcepub fn new(kind: GroupingSetKind, groups: impl IntoExprList) -> Self
pub fn new(kind: GroupingSetKind, groups: impl IntoExprList) -> Self
A grouping element of kind over groups.
Trait Implementations§
Source§impl Clone for GroupingSet
impl Clone for GroupingSet
Source§fn clone(&self) -> GroupingSet
fn clone(&self) -> GroupingSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GroupingSet
impl Debug for GroupingSet
Source§impl Default for GroupingSet
impl Default for GroupingSet
Source§fn default() -> GroupingSet
fn default() -> GroupingSet
Returns the “default value” for a type. Read more
Source§impl Expression for GroupingSet
impl Expression for GroupingSet
Auto Trait Implementations§
impl !RefUnwindSafe for GroupingSet
impl !UnwindSafe for GroupingSet
impl Freeze for GroupingSet
impl Send for GroupingSet
impl Sync for GroupingSet
impl Unpin for GroupingSet
impl UnsafeUnpin for GroupingSet
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