pub trait KeyedDocuments: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Result<Option<Value>, String>;
fn set(&self, key: &str, value: &Value) -> Result<(), String>;
fn list(&self, prefix: &str) -> Result<Vec<(String, Value)>, String>;
}Expand description
Keyed durable documents (DurableDocumentStorage): listings keep insertion order.
Required Methods§
fn get(&self, key: &str) -> Result<Option<Value>, String>
fn set(&self, key: &str, value: &Value) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".