amethystate 0.9.3

Type-safe reactive persistence for Rust GUI apps
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::StorageResult;
use crate::store::CodecFormat;
use crate::store::meta::SchemaSnapshot;

pub trait InspectorBackend {
    fn format(&self) -> CodecFormat;
    fn scan_all(&self) -> StorageResult<Vec<(String, Vec<u8>)>>;
    fn get_schema_snapshots(&self) -> StorageResult<Vec<(String, SchemaSnapshot)>>;
    fn set_raw(&mut self, key: &str, value: &[u8]) -> StorageResult<()>;
}