pub struct Aggregate {
pub fn_: AggregateFunction,
pub field: Option<String>,
pub path: Option<Vec<JsonPathSegment>>,
pub distinct: Option<Vec<String>>,
}Expand description
An aggregate of a query or a relationship (Aggregate).
Fields§
§fn_: AggregateFunction§field: Option<String>The column to aggregate; None for count.
path: Option<Vec<JsonPathSegment>>A path into field, then a json column, to a scalar leaf.
distinct: Option<Vec<String>>For count: counts the distinct combinations of these columns.
Implementations§
Trait Implementations§
Source§impl JsonCodable for Aggregate
impl JsonCodable for Aggregate
impl StructuralPartialEq for Aggregate
Auto Trait Implementations§
impl Forget for Aggregate
impl Freeze for Aggregate
impl Move for Aggregate
impl RefUnwindSafe for Aggregate
impl Send for Aggregate
impl Sync for Aggregate
impl Unpin for Aggregate
impl UnsafeUnpin for Aggregate
impl UnwindSafe for Aggregate
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