#[non_exhaustive]pub struct AttributeAggregationFunction {
pub simple_attribute_aggregation: Option<SimpleAttributeAggregationFunction>,
pub value_for_multiple_values: Option<String>,
}
Expand description
Aggregation for attributes.
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_attribute_aggregation: Option<SimpleAttributeAggregationFunction>
The built-in aggregation functions for attributes.
-
UNIQUE_VALUE
: Returns the unique value for a field, aggregated by the dimension fields.
value_for_multiple_values: Option<String>
Used by the UNIQUE_VALUE
aggregation function. If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
Implementations§
source§impl AttributeAggregationFunction
impl AttributeAggregationFunction
sourcepub fn simple_attribute_aggregation(
&self
) -> Option<&SimpleAttributeAggregationFunction>
pub fn simple_attribute_aggregation( &self ) -> Option<&SimpleAttributeAggregationFunction>
The built-in aggregation functions for attributes.
-
UNIQUE_VALUE
: Returns the unique value for a field, aggregated by the dimension fields.
sourcepub fn value_for_multiple_values(&self) -> Option<&str>
pub fn value_for_multiple_values(&self) -> Option<&str>
Used by the UNIQUE_VALUE
aggregation function. If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
source§impl AttributeAggregationFunction
impl AttributeAggregationFunction
sourcepub fn builder() -> AttributeAggregationFunctionBuilder
pub fn builder() -> AttributeAggregationFunctionBuilder
Creates a new builder-style object to manufacture AttributeAggregationFunction
.
Trait Implementations§
source§impl Clone for AttributeAggregationFunction
impl Clone for AttributeAggregationFunction
source§fn clone(&self) -> AttributeAggregationFunction
fn clone(&self) -> AttributeAggregationFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributeAggregationFunction
impl Debug for AttributeAggregationFunction
source§impl PartialEq for AttributeAggregationFunction
impl PartialEq for AttributeAggregationFunction
source§fn eq(&self, other: &AttributeAggregationFunction) -> bool
fn eq(&self, other: &AttributeAggregationFunction) -> bool
self
and other
values to be equal, and is used
by ==
.