pub struct AggFunc {
pub this: Expression,
pub distinct: bool,
pub filter: Option<Expression>,
pub order_by: Vec<Ordered>,
pub name: Option<String>,
pub ignore_nulls: Option<bool>,
pub having_max: Option<(Box<Expression>, bool)>,
pub limit: Option<Box<Expression>>,
}Expand description
Generic aggregate function base type
Fields§
§this: Expression§distinct: bool§filter: Option<Expression>§order_by: Vec<Ordered>§name: Option<String>Original function name (case-preserving) when parsed from SQL
ignore_nulls: Option<bool>IGNORE NULLS (true) or RESPECT NULLS (false), None if not specified
having_max: Option<(Box<Expression>, bool)>HAVING MAX/MIN expr inside aggregate (BigQuery syntax) e.g., ANY_VALUE(fruit HAVING MAX sold) - (expression, is_max: true for MAX, false for MIN)
limit: Option<Box<Expression>>LIMIT inside aggregate (e.g., ARRAY_AGG(x ORDER BY y LIMIT 2))
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AggFunc
impl<'de> Deserialize<'de> for AggFunc
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 AggFunc
Auto Trait Implementations§
impl Freeze for AggFunc
impl RefUnwindSafe for AggFunc
impl Send for AggFunc
impl Sync for AggFunc
impl Unpin for AggFunc
impl UnwindSafe for AggFunc
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