pub trait Aggregation: Send + Sync {
// Required method
fn aggregate(&self, events: &[StreamEvent]) -> AggregateResult;
}Expand description
Trait for aggregation functions
pub trait Aggregation: Send + Sync {
// Required method
fn aggregate(&self, events: &[StreamEvent]) -> AggregateResult;
}Trait for aggregation functions