Skip to main content

ProjectionReducer

Trait ProjectionReducer 

Source
pub trait ProjectionReducer<T> {
    // Required methods
    fn initial_state(&self) -> T;
    fn apply(&self, state: T, event: &VersionedTransitionEvent) -> T;
}
Expand description

Projection reducer for materialized views.

Required Methods§

Source

fn initial_state(&self) -> T

Source

fn apply(&self, state: T, event: &VersionedTransitionEvent) -> T

Implementors§