valise 0.1.4

Single-file retrieval capsule for local-first AI: text and vector search over one portable file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! Time index records, spec ยง17.
//!
//! Per-entry record only. The segment payload that aggregates these
//! (`TimeIndexSegment`) and its wire codec live in `time_index_segment.rs`.

use crate::format::{CollectionId, FrameId};

#[derive(Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
pub struct TimeIndexEntry {
    pub collection_id: CollectionId,
    pub frame_id: FrameId,
    pub created_at: i64,
    pub updated_at: i64,
}