pub trait KnowledgeBase:
Sync
+ Send
+ DynClone
+ 'static {
// Required methods
fn insert_data(
&self,
collection: String,
key: String,
data: Vec<u8>,
) -> Result<()>;
fn retrieve_data(&self, collection: String, key: String) -> Result<Vec<u8>>;
}Expand description
Trait for the low level interface to the knowledge base
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".