pub struct FileEvaluationRepository { /* private fields */ }Expand description
Filesystem-backed immutable JSON evaluation repository.
Identity components are hex encoded before path construction. Writes use a same-directory temporary file and atomic no-replace link. Re-saving identical bytes is idempotent; replacing an existing version with different bytes fails.
Implementations§
Trait Implementations§
Source§impl Clone for FileEvaluationRepository
impl Clone for FileEvaluationRepository
Source§fn clone(&self) -> FileEvaluationRepository
fn clone(&self) -> FileEvaluationRepository
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileEvaluationRepository
impl Debug for FileEvaluationRepository
Source§impl EvaluationRepository for FileEvaluationRepository
impl EvaluationRepository for FileEvaluationRepository
Source§fn save_dataset(
&self,
dataset: &EvaluationDataset,
) -> Result<(), EvaluationStoreError>
fn save_dataset( &self, dataset: &EvaluationDataset, ) -> Result<(), EvaluationStoreError>
Saves one immutable dataset version. Read more
Source§fn load_dataset(
&self,
name: &str,
version: &str,
) -> Result<EvaluationDataset, EvaluationStoreError>
fn load_dataset( &self, name: &str, version: &str, ) -> Result<EvaluationDataset, EvaluationStoreError>
Loads one dataset version. Read more
Source§fn save_report(
&self,
report: &EvaluationReport,
) -> Result<(), EvaluationStoreError>
fn save_report( &self, report: &EvaluationReport, ) -> Result<(), EvaluationStoreError>
Saves one immutable candidate report. Read more
Source§fn load_report(
&self,
dataset_name: &str,
dataset_version: &str,
candidate_version: &str,
) -> Result<EvaluationReport, EvaluationStoreError>
fn load_report( &self, dataset_name: &str, dataset_version: &str, candidate_version: &str, ) -> Result<EvaluationReport, EvaluationStoreError>
Loads one candidate report. Read more
Auto Trait Implementations§
impl Freeze for FileEvaluationRepository
impl RefUnwindSafe for FileEvaluationRepository
impl Send for FileEvaluationRepository
impl Sync for FileEvaluationRepository
impl Unpin for FileEvaluationRepository
impl UnsafeUnpin for FileEvaluationRepository
impl UnwindSafe for FileEvaluationRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more