Skip to main content

BaselineStore

Trait BaselineStore 

Source
pub trait BaselineStore {
    // Required methods
    fn read(&self) -> Option<String>;
    fn write(&mut self, contents: &str);
}
Expand description

Persistence port for varar.lock.json. The core owns the format; adapters move only raw text.

Required Methods§

Source

fn read(&self) -> Option<String>

The whole lockfile’s contents, or None when there is no baseline yet.

Source

fn write(&mut self, contents: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§