#[non_exhaustive]pub struct AggregationFunctionBuilder { /* private fields */ }Expand description
A builder for AggregationFunction.
Implementations§
source§impl AggregationFunctionBuilder
impl AggregationFunctionBuilder
sourcepub fn numerical_aggregation_function(
self,
input: NumericalAggregationFunction,
) -> Self
pub fn numerical_aggregation_function( self, input: NumericalAggregationFunction, ) -> Self
Aggregation for numerical values.
sourcepub fn set_numerical_aggregation_function(
self,
input: Option<NumericalAggregationFunction>,
) -> Self
pub fn set_numerical_aggregation_function( self, input: Option<NumericalAggregationFunction>, ) -> Self
Aggregation for numerical values.
sourcepub fn get_numerical_aggregation_function(
&self,
) -> &Option<NumericalAggregationFunction>
pub fn get_numerical_aggregation_function( &self, ) -> &Option<NumericalAggregationFunction>
Aggregation for numerical values.
sourcepub fn categorical_aggregation_function(
self,
input: CategoricalAggregationFunction,
) -> Self
pub fn categorical_aggregation_function( self, input: CategoricalAggregationFunction, ) -> Self
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 set_categorical_aggregation_function(
self,
input: Option<CategoricalAggregationFunction>,
) -> Self
pub fn set_categorical_aggregation_function( self, input: Option<CategoricalAggregationFunction>, ) -> Self
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 get_categorical_aggregation_function(
&self,
) -> &Option<CategoricalAggregationFunction>
pub fn get_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, input: DateAggregationFunction) -> Self
pub fn date_aggregation_function(self, input: DateAggregationFunction) -> Self
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 set_date_aggregation_function(
self,
input: Option<DateAggregationFunction>,
) -> Self
pub fn set_date_aggregation_function( self, input: Option<DateAggregationFunction>, ) -> Self
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 get_date_aggregation_function(&self) -> &Option<DateAggregationFunction>
pub fn get_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,
input: AttributeAggregationFunction,
) -> Self
pub fn attribute_aggregation_function( self, input: AttributeAggregationFunction, ) -> Self
Aggregation for attributes.
sourcepub fn set_attribute_aggregation_function(
self,
input: Option<AttributeAggregationFunction>,
) -> Self
pub fn set_attribute_aggregation_function( self, input: Option<AttributeAggregationFunction>, ) -> Self
Aggregation for attributes.
sourcepub fn get_attribute_aggregation_function(
&self,
) -> &Option<AttributeAggregationFunction>
pub fn get_attribute_aggregation_function( &self, ) -> &Option<AttributeAggregationFunction>
Aggregation for attributes.
sourcepub fn build(self) -> AggregationFunction
pub fn build(self) -> AggregationFunction
Consumes the builder and constructs a AggregationFunction.
Trait Implementations§
source§impl Clone for AggregationFunctionBuilder
impl Clone for AggregationFunctionBuilder
source§fn clone(&self) -> AggregationFunctionBuilder
fn clone(&self) -> AggregationFunctionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AggregationFunctionBuilder
impl Debug for AggregationFunctionBuilder
source§impl Default for AggregationFunctionBuilder
impl Default for AggregationFunctionBuilder
source§fn default() -> AggregationFunctionBuilder
fn default() -> AggregationFunctionBuilder
source§impl PartialEq for AggregationFunctionBuilder
impl PartialEq for AggregationFunctionBuilder
source§fn eq(&self, other: &AggregationFunctionBuilder) -> bool
fn eq(&self, other: &AggregationFunctionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AggregationFunctionBuilder
Auto Trait Implementations§
impl Freeze for AggregationFunctionBuilder
impl RefUnwindSafe for AggregationFunctionBuilder
impl Send for AggregationFunctionBuilder
impl Sync for AggregationFunctionBuilder
impl Unpin for AggregationFunctionBuilder
impl UnwindSafe for AggregationFunctionBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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