pub trait Storage: Send + Sync {
// Required methods
fn store(&self, path: &str, data: &[u8]) -> Result<String, String>;
fn retrieve(&self, path: &str) -> Result<Vec<u8>, String>;
}
Expand description
Storage interface
pub trait Storage: Send + Sync {
// Required methods
fn store(&self, path: &str, data: &[u8]) -> Result<String, String>;
fn retrieve(&self, path: &str) -> Result<Vec<u8>, String>;
}
Storage interface