#[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 ==
.impl StructuralPartialEq for AttributeAggregationFunction
Auto Trait Implementations§
impl Freeze for AttributeAggregationFunction
impl RefUnwindSafe for AttributeAggregationFunction
impl Send for AttributeAggregationFunction
impl Sync for AttributeAggregationFunction
impl Unpin for AttributeAggregationFunction
impl UnwindSafe for AttributeAggregationFunction
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