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§
Sourcefn read(&self) -> Option<String>
fn read(&self) -> Option<String>
The whole lockfile’s contents, or None when there is no baseline yet.
fn write(&mut self, contents: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".