pub struct AggregationState { /* private fields */ }Expand description
Complete aggregation state for the table.
Tracks which columns have aggregation functions assigned and whether aggregation processing is enabled.
Implementations§
Source§impl AggregationState
impl AggregationState
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new empty aggregation state.
§Returns
AggregationState: A new aggregation state with no functions assigned.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Sourcepub fn get_aggregation(
&self,
column_id: &ColumnId,
) -> Option<BuiltInAggregation>
pub fn get_aggregation( &self, column_id: &ColumnId, ) -> Option<BuiltInAggregation>
Sourcepub fn set_aggregation(
&mut self,
column_id: ColumnId,
function: BuiltInAggregation,
)
pub fn set_aggregation( &mut self, column_id: ColumnId, function: BuiltInAggregation, )
Sets the aggregation function for a column.
§Parameters
column_id: The column identifier.function: The aggregation function to assign.
Sourcepub fn remove_aggregation(&mut self, column_id: &ColumnId)
pub fn remove_aggregation(&mut self, column_id: &ColumnId)
Removes the aggregation function for a column.
§Parameters
column_id: The column identifier to remove.
Trait Implementations§
Source§impl Clone for AggregationState
impl Clone for AggregationState
Source§fn clone(&self) -> AggregationState
fn clone(&self) -> AggregationState
Returns a duplicate 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 AggregationState
impl Debug for AggregationState
Source§impl Default for AggregationState
impl Default for AggregationState
Source§fn default() -> AggregationState
fn default() -> AggregationState
Returns the “default value” for a type. Read more
Source§impl PartialEq for AggregationState
impl PartialEq for AggregationState
impl StructuralPartialEq for AggregationState
Auto Trait Implementations§
impl Freeze for AggregationState
impl RefUnwindSafe for AggregationState
impl Send for AggregationState
impl Sync for AggregationState
impl Unpin for AggregationState
impl UnsafeUnpin for AggregationState
impl UnwindSafe for AggregationState
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