#[non_exhaustive]pub struct AggregationSortConfiguration {
pub column: Option<ColumnIdentifier>,
pub sort_direction: SortDirection,
pub aggregation_function: Option<AggregationFunction>,
}
Expand description
The configuration options to sort aggregated values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.column: Option<ColumnIdentifier>
The column that determines the sort order of aggregated values.
sort_direction: SortDirection
The sort direction of values.
-
ASC
: Sort in ascending order. -
DESC
: Sort in descending order.
aggregation_function: Option<AggregationFunction>
The function that aggregates the values in Column
.
Implementations§
source§impl AggregationSortConfiguration
impl AggregationSortConfiguration
sourcepub fn column(&self) -> Option<&ColumnIdentifier>
pub fn column(&self) -> Option<&ColumnIdentifier>
The column that determines the sort order of aggregated values.
sourcepub fn sort_direction(&self) -> &SortDirection
pub fn sort_direction(&self) -> &SortDirection
The sort direction of values.
-
ASC
: Sort in ascending order. -
DESC
: Sort in descending order.
sourcepub fn aggregation_function(&self) -> Option<&AggregationFunction>
pub fn aggregation_function(&self) -> Option<&AggregationFunction>
The function that aggregates the values in Column
.
source§impl AggregationSortConfiguration
impl AggregationSortConfiguration
sourcepub fn builder() -> AggregationSortConfigurationBuilder
pub fn builder() -> AggregationSortConfigurationBuilder
Creates a new builder-style object to manufacture AggregationSortConfiguration
.
Trait Implementations§
source§impl Clone for AggregationSortConfiguration
impl Clone for AggregationSortConfiguration
source§fn clone(&self) -> AggregationSortConfiguration
fn clone(&self) -> AggregationSortConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AggregationSortConfiguration
impl Debug for AggregationSortConfiguration
source§impl PartialEq for AggregationSortConfiguration
impl PartialEq for AggregationSortConfiguration
source§fn eq(&self, other: &AggregationSortConfiguration) -> bool
fn eq(&self, other: &AggregationSortConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AggregationSortConfiguration
Auto Trait Implementations§
impl Freeze for AggregationSortConfiguration
impl RefUnwindSafe for AggregationSortConfiguration
impl Send for AggregationSortConfiguration
impl Sync for AggregationSortConfiguration
impl Unpin for AggregationSortConfiguration
impl UnwindSafe for AggregationSortConfiguration
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.