Skip to main content

filter_as_of

Function filter_as_of 

Source
pub fn filter_as_of(
    snapshots: Vec<SnapshotListEntry>,
    cutoff: Option<DateTime<Utc>>,
) -> Vec<SnapshotListEntry>
Expand description

Keep only snapshots taken at or before cutoff (point-in-time selection), preserving order so it composes with pick_offset: filter first, then offset (“the previous one as of last Tuesday”). None keeps the full list.