#[non_exhaustive]pub struct AttributeAggregationFunctionBuilder { /* private fields */ }
Expand description
A builder for AttributeAggregationFunction
.
Implementations§
source§impl AttributeAggregationFunctionBuilder
impl AttributeAggregationFunctionBuilder
sourcepub fn simple_attribute_aggregation(
self,
input: SimpleAttributeAggregationFunction
) -> Self
pub fn simple_attribute_aggregation( self, input: SimpleAttributeAggregationFunction ) -> Self
The built-in aggregation functions for attributes.
-
UNIQUE_VALUE
: Returns the unique value for a field, aggregated by the dimension fields.
sourcepub fn set_simple_attribute_aggregation(
self,
input: Option<SimpleAttributeAggregationFunction>
) -> Self
pub fn set_simple_attribute_aggregation( self, input: Option<SimpleAttributeAggregationFunction> ) -> Self
The built-in aggregation functions for attributes.
-
UNIQUE_VALUE
: Returns the unique value for a field, aggregated by the dimension fields.
sourcepub fn get_simple_attribute_aggregation(
&self
) -> &Option<SimpleAttributeAggregationFunction>
pub fn get_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, input: impl Into<String>) -> Self
pub fn value_for_multiple_values(self, input: impl Into<String>) -> Self
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 '*'.
sourcepub fn set_value_for_multiple_values(self, input: Option<String>) -> Self
pub fn set_value_for_multiple_values(self, input: Option<String>) -> Self
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 '*'.
sourcepub fn get_value_for_multiple_values(&self) -> &Option<String>
pub fn get_value_for_multiple_values(&self) -> &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 '*'.
sourcepub fn build(self) -> AttributeAggregationFunction
pub fn build(self) -> AttributeAggregationFunction
Consumes the builder and constructs a AttributeAggregationFunction
.
Trait Implementations§
source§impl Clone for AttributeAggregationFunctionBuilder
impl Clone for AttributeAggregationFunctionBuilder
source§fn clone(&self) -> AttributeAggregationFunctionBuilder
fn clone(&self) -> AttributeAggregationFunctionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AttributeAggregationFunctionBuilder
impl Default for AttributeAggregationFunctionBuilder
source§fn default() -> AttributeAggregationFunctionBuilder
fn default() -> AttributeAggregationFunctionBuilder
source§impl PartialEq for AttributeAggregationFunctionBuilder
impl PartialEq for AttributeAggregationFunctionBuilder
source§fn eq(&self, other: &AttributeAggregationFunctionBuilder) -> bool
fn eq(&self, other: &AttributeAggregationFunctionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.