pub struct GroupBy {
pub expressions: Vec<Expression>,
pub all: Option<bool>,
pub totals: bool,
}Expand description
Represent a GROUP BY clause with optional ALL/DISTINCT and WITH TOTALS modifiers.
The expressions list may contain plain columns, ordinal positions,
ROLLUP/CUBE/GROUPING SETS expressions, or the special empty-set ().
Fields§
§expressions: Vec<Expression>The grouping expressions.
all: Option<bool>GROUP BY modifier: Some(true) = ALL, Some(false) = DISTINCT, None = no modifier
totals: boolClickHouse: WITH TOTALS modifier
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GroupBy
impl<'de> Deserialize<'de> for GroupBy
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
impl StructuralPartialEq for GroupBy
Auto Trait Implementations§
impl Freeze for GroupBy
impl RefUnwindSafe for GroupBy
impl Send for GroupBy
impl Sync for GroupBy
impl Unpin for GroupBy
impl UnwindSafe for GroupBy
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