#[non_exhaustive]pub struct AggregationSortConfigurationBuilder { /* private fields */ }Expand description
A builder for AggregationSortConfiguration.
Implementations§
source§impl AggregationSortConfigurationBuilder
impl AggregationSortConfigurationBuilder
sourcepub fn column(self, input: ColumnIdentifier) -> Self
pub fn column(self, input: ColumnIdentifier) -> Self
The column that determines the sort order of aggregated values.
This field is required.sourcepub fn set_column(self, input: Option<ColumnIdentifier>) -> Self
pub fn set_column(self, input: Option<ColumnIdentifier>) -> Self
The column that determines the sort order of aggregated values.
sourcepub fn get_column(&self) -> &Option<ColumnIdentifier>
pub fn get_column(&self) -> &Option<ColumnIdentifier>
The column that determines the sort order of aggregated values.
sourcepub fn sort_direction(self, input: SortDirection) -> Self
pub fn sort_direction(self, input: SortDirection) -> Self
The sort direction of values.
-
ASC: Sort in ascending order. -
DESC: Sort in descending order.
sourcepub fn set_sort_direction(self, input: Option<SortDirection>) -> Self
pub fn set_sort_direction(self, input: Option<SortDirection>) -> Self
The sort direction of values.
-
ASC: Sort in ascending order. -
DESC: Sort in descending order.
sourcepub fn get_sort_direction(&self) -> &Option<SortDirection>
pub fn get_sort_direction(&self) -> &Option<SortDirection>
The sort direction of values.
-
ASC: Sort in ascending order. -
DESC: Sort in descending order.
sourcepub fn aggregation_function(self, input: AggregationFunction) -> Self
pub fn aggregation_function(self, input: AggregationFunction) -> Self
The function that aggregates the values in Column.
sourcepub fn set_aggregation_function(
self,
input: Option<AggregationFunction>
) -> Self
pub fn set_aggregation_function( self, input: Option<AggregationFunction> ) -> Self
The function that aggregates the values in Column.
sourcepub fn get_aggregation_function(&self) -> &Option<AggregationFunction>
pub fn get_aggregation_function(&self) -> &Option<AggregationFunction>
The function that aggregates the values in Column.
sourcepub fn build(self) -> Result<AggregationSortConfiguration, BuildError>
pub fn build(self) -> Result<AggregationSortConfiguration, BuildError>
Consumes the builder and constructs a AggregationSortConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AggregationSortConfigurationBuilder
impl Clone for AggregationSortConfigurationBuilder
source§fn clone(&self) -> AggregationSortConfigurationBuilder
fn clone(&self) -> AggregationSortConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AggregationSortConfigurationBuilder
impl Default for AggregationSortConfigurationBuilder
source§fn default() -> AggregationSortConfigurationBuilder
fn default() -> AggregationSortConfigurationBuilder
source§impl PartialEq for AggregationSortConfigurationBuilder
impl PartialEq for AggregationSortConfigurationBuilder
source§fn eq(&self, other: &AggregationSortConfigurationBuilder) -> bool
fn eq(&self, other: &AggregationSortConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.