pub trait KeyExtractor<T> {
// Required method
fn extract_key(&self, event: &T) -> EventKey;
}Expand description
Trait for extracting aggregation keys from events
Implement this trait to define how to extract the aggregation key from your event type. This is used for grouping events in stream processing operations.
Required Methods§
Sourcefn extract_key(&self, event: &T) -> EventKey
fn extract_key(&self, event: &T) -> EventKey
Extract the aggregation key from the event
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".