materialize_state

Function materialize_state 

Source
pub fn materialize_state(events: &[AuditEvent]) -> AuditState
Expand description

Replay a sequence of events to build the materialized state.

Events are processed in order. For each event, the to field (if present) becomes the current status of the entity identified by (entity, entity_id, scope).