Skip to main content

temporal_snapshot

Function temporal_snapshot 

Source
pub fn temporal_snapshot<T>(
    records: &[BitemporalRecord<T>],
    as_of_time: DateTime<Utc>,
) -> Vec<BitemporalRecord<T>>
where T: Clone,
Expand description

Return full state as of a specific recorded_time.

Returns all records that were current at the given recorded_time, one record per unique ID (the latest version as of that time).