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