#[non_exhaustive]pub struct NumericalAggregationFunction {
pub simple_numerical_aggregation: Option<SimpleNumericalAggregationFunction>,
pub percentile_aggregation: Option<PercentileAggregation>,
}
Expand description
Aggregation for numerical values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.simple_numerical_aggregation: Option<SimpleNumericalAggregationFunction>
Built-in aggregation functions for numerical values.
-
SUM
: The sum of a dimension or measure. -
AVERAGE
: The average of a dimension or measure. -
MIN
: The minimum value of a dimension or measure. -
MAX
: The maximum value of a dimension or measure. -
COUNT
: The count of a dimension or measure. -
DISTINCT_COUNT
: The count of distinct values in a dimension or measure. -
VAR
: The variance of a dimension or measure. -
VARP
: The partitioned variance of a dimension or measure. -
STDEV
: The standard deviation of a dimension or measure. -
STDEVP
: The partitioned standard deviation of a dimension or measure. -
MEDIAN
: The median value of a dimension or measure.
percentile_aggregation: Option<PercentileAggregation>
An aggregation based on the percentile of values in a dimension or measure.
Implementations§
source§impl NumericalAggregationFunction
impl NumericalAggregationFunction
sourcepub fn simple_numerical_aggregation(
&self,
) -> Option<&SimpleNumericalAggregationFunction>
pub fn simple_numerical_aggregation( &self, ) -> Option<&SimpleNumericalAggregationFunction>
Built-in aggregation functions for numerical values.
-
SUM
: The sum of a dimension or measure. -
AVERAGE
: The average of a dimension or measure. -
MIN
: The minimum value of a dimension or measure. -
MAX
: The maximum value of a dimension or measure. -
COUNT
: The count of a dimension or measure. -
DISTINCT_COUNT
: The count of distinct values in a dimension or measure. -
VAR
: The variance of a dimension or measure. -
VARP
: The partitioned variance of a dimension or measure. -
STDEV
: The standard deviation of a dimension or measure. -
STDEVP
: The partitioned standard deviation of a dimension or measure. -
MEDIAN
: The median value of a dimension or measure.
sourcepub fn percentile_aggregation(&self) -> Option<&PercentileAggregation>
pub fn percentile_aggregation(&self) -> Option<&PercentileAggregation>
An aggregation based on the percentile of values in a dimension or measure.
source§impl NumericalAggregationFunction
impl NumericalAggregationFunction
sourcepub fn builder() -> NumericalAggregationFunctionBuilder
pub fn builder() -> NumericalAggregationFunctionBuilder
Creates a new builder-style object to manufacture NumericalAggregationFunction
.
Trait Implementations§
source§impl Clone for NumericalAggregationFunction
impl Clone for NumericalAggregationFunction
source§fn clone(&self) -> NumericalAggregationFunction
fn clone(&self) -> NumericalAggregationFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NumericalAggregationFunction
impl Debug for NumericalAggregationFunction
source§impl PartialEq for NumericalAggregationFunction
impl PartialEq for NumericalAggregationFunction
source§fn eq(&self, other: &NumericalAggregationFunction) -> bool
fn eq(&self, other: &NumericalAggregationFunction) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NumericalAggregationFunction
Auto Trait Implementations§
impl Freeze for NumericalAggregationFunction
impl RefUnwindSafe for NumericalAggregationFunction
impl Send for NumericalAggregationFunction
impl Sync for NumericalAggregationFunction
impl Unpin for NumericalAggregationFunction
impl UnwindSafe for NumericalAggregationFunction
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more