pub struct EvalMemory {
pub key: String,
pub text: String,
pub valid_to: Option<String>,
pub superseded_by_key: Option<String>,
}Expand description
A single corpus memory: stable key (referenced by EvalCase::relevant) and text.
Fields§
§key: StringStable short key used to cross-reference from EvalCase::relevant.
text: StringFull text of the memory to add to the corpus.
valid_to: Option<String>Flagship 1 Pass A: optional RFC 3339 timestamp. When present and in the
PAST, the bench seeder stamps this memory with valid_to (expired) so
validity-aware retrieval excludes it. Omitting this field leaves the
memory valid indefinitely — existing fixtures are unchanged.
superseded_by_key: Option<String>Flagship 1 Pass A: optional key of another EvalMemory that supersedes
this one. When present, the bench seeder stamps superseded_by on this
memory (pointing to the survivor’s DB id) so retrieval excludes it via
the existing superseded_by IS NULL guard.
Omitting this field leaves the memory active — existing fixtures unchanged.
Trait Implementations§
Source§impl Clone for EvalMemory
impl Clone for EvalMemory
Source§fn clone(&self) -> EvalMemory
fn clone(&self) -> EvalMemory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more