pub enum ProjectedAggregate {
Count,
CountPresent {
field: String,
},
CountDistinct {
field: String,
},
CountDistinctPresent {
field: String,
},
Sum {
field: String,
},
Mean {
field: String,
},
Min {
field: String,
},
Max {
field: String,
},
Any {
field: String,
},
All {
field: String,
},
}Expand description
One aggregate function over a projected column.
Typed rather than (op, field): Count reads no column, so a count that
names one is unrepresentable instead of rejected at the server.
Variants§
Count
Number of matching rows.
CountPresent
Number of matching rows where the named optional column is non-null.
CountDistinct
Number of distinct values of the named column (NULL counts as one value).
CountDistinctPresent
Number of distinct non-null values of the named optional column.
Sum
Exact integer/fixed-point sum of one column (I64, U64, uniform-scale Decimal, or uniform-currency Money).
Mean
Exact integer/fixed-point mean ((total, count)) of one column (I64, U64, uniform-scale Decimal, or uniform-currency Money).
Min
Smallest value of one column.
Max
Largest value of one column.
Any
Logical OR over a boolean column (false on empty input).
All
Logical AND over a boolean column (true on empty input).
Trait Implementations§
Source§impl Clone for ProjectedAggregate
impl Clone for ProjectedAggregate
Source§fn clone(&self) -> ProjectedAggregate
fn clone(&self) -> ProjectedAggregate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectedAggregate
impl Debug for ProjectedAggregate
impl Eq for ProjectedAggregate
Source§impl PartialEq for ProjectedAggregate
impl PartialEq for ProjectedAggregate
Source§fn eq(&self, other: &ProjectedAggregate) -> bool
fn eq(&self, other: &ProjectedAggregate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProjectedAggregate
Auto Trait Implementations§
impl Freeze for ProjectedAggregate
impl RefUnwindSafe for ProjectedAggregate
impl Send for ProjectedAggregate
impl Sync for ProjectedAggregate
impl Unpin for ProjectedAggregate
impl UnsafeUnpin for ProjectedAggregate
impl UnwindSafe for ProjectedAggregate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].