pub enum Aggregation {
Count,
Sum(String),
Avg(String),
Min(String),
Max(String),
}Expand description
Aggregation operations for queries.
Variants§
Count
Count of matching documents
Sum(String)
Sum of numeric values in the specified field
Avg(String)
Average of numeric values in the specified field
Min(String)
Minimum value in the specified field
Max(String)
Maximum value in the specified field
Trait Implementations§
Source§impl Clone for Aggregation
impl Clone for Aggregation
Source§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
Returns a duplicate of the value. Read more
1.0.0 · 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 Aggregation
impl Debug for Aggregation
Source§impl PartialEq for Aggregation
impl PartialEq for Aggregation
impl Eq for Aggregation
impl StructuralPartialEq for Aggregation
Auto Trait Implementations§
impl Freeze for Aggregation
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
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