Struct aws_sdk_quicksight::types::AggregationFunction
source · #[non_exhaustive]pub struct AggregationFunction {
pub numerical_aggregation_function: Option<NumericalAggregationFunction>,
pub categorical_aggregation_function: Option<CategoricalAggregationFunction>,
pub date_aggregation_function: Option<DateAggregationFunction>,
pub attribute_aggregation_function: Option<AttributeAggregationFunction>,
}
Expand description
An aggregation function aggregates values from a dimension or measure.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
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.numerical_aggregation_function: Option<NumericalAggregationFunction>
Aggregation for numerical values.
categorical_aggregation_function: Option<CategoricalAggregationFunction>
Aggregation for categorical values.
-
COUNT
: Aggregate by the total number of values, including duplicates. -
DISTINCT_COUNT
: Aggregate by the total number of distinct values.
date_aggregation_function: Option<DateAggregationFunction>
Aggregation for date values.
-
COUNT
: Aggregate by the total number of values, including duplicates. -
DISTINCT_COUNT
: Aggregate by the total number of distinct values. -
MIN
: Select the smallest date value. -
MAX
: Select the largest date value.
attribute_aggregation_function: Option<AttributeAggregationFunction>
Aggregation for attributes.
Implementations§
source§impl AggregationFunction
impl AggregationFunction
sourcepub fn numerical_aggregation_function(
&self
) -> Option<&NumericalAggregationFunction>
pub fn numerical_aggregation_function( &self ) -> Option<&NumericalAggregationFunction>
Aggregation for numerical values.
sourcepub fn categorical_aggregation_function(
&self
) -> Option<&CategoricalAggregationFunction>
pub fn categorical_aggregation_function( &self ) -> Option<&CategoricalAggregationFunction>
Aggregation for categorical values.
-
COUNT
: Aggregate by the total number of values, including duplicates. -
DISTINCT_COUNT
: Aggregate by the total number of distinct values.
sourcepub fn date_aggregation_function(&self) -> Option<&DateAggregationFunction>
pub fn date_aggregation_function(&self) -> Option<&DateAggregationFunction>
Aggregation for date values.
-
COUNT
: Aggregate by the total number of values, including duplicates. -
DISTINCT_COUNT
: Aggregate by the total number of distinct values. -
MIN
: Select the smallest date value. -
MAX
: Select the largest date value.
sourcepub fn attribute_aggregation_function(
&self
) -> Option<&AttributeAggregationFunction>
pub fn attribute_aggregation_function( &self ) -> Option<&AttributeAggregationFunction>
Aggregation for attributes.
source§impl AggregationFunction
impl AggregationFunction
sourcepub fn builder() -> AggregationFunctionBuilder
pub fn builder() -> AggregationFunctionBuilder
Creates a new builder-style object to manufacture AggregationFunction
.
Trait Implementations§
source§impl Clone for AggregationFunction
impl Clone for AggregationFunction
source§fn clone(&self) -> AggregationFunction
fn clone(&self) -> AggregationFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AggregationFunction
impl Debug for AggregationFunction
source§impl PartialEq for AggregationFunction
impl PartialEq for AggregationFunction
source§fn eq(&self, other: &AggregationFunction) -> bool
fn eq(&self, other: &AggregationFunction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AggregationFunction
Auto Trait Implementations§
impl Freeze for AggregationFunction
impl RefUnwindSafe for AggregationFunction
impl Send for AggregationFunction
impl Sync for AggregationFunction
impl Unpin for AggregationFunction
impl UnwindSafe for AggregationFunction
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> 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