#[non_exhaustive]pub struct Persist {
pub results_dir: PathBuf,
pub model: String,
pub backend: String,
pub cases_dir: String,
}Expand description
Where and how to persist a run, attached to a RunMeta via
RunMeta::persist_to. When present on the meta passed to a run, the
runner writes {slug(model)}_{timestamp_file}.json into results_dir and regenerates
results_dir/report.html.
#[non_exhaustive]: build it through the RunMeta builder (persist_to + optional backend_kind /
cases_dir), never a struct literal, so new fields stay non-breaking.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.results_dir: PathBufDirectory the per-run JSON and report.html are written to (created if missing).
model: StringThe model / grouping key recorded on the run (RunRecord::model),
also used (slugged) in the JSON filename.
backend: StringThe backend KIND shown in the report’s Backend column
(RunRecord::backend), e.g. "local" / "remote". When empty it
falls back to the run’s descriptive backend label (EvalReport::backend).
cases_dir: StringThe case directory recorded on the run (RunRecord::cases_dir),
shown in the report. May be empty.