KnowledgeBase

Trait KnowledgeBase 

Source
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§

Source

fn insert_data( &self, collection: String, key: String, data: Vec<u8>, ) -> Result<()>

Insert data

Source

fn retrieve_data(&self, collection: String, key: String) -> Result<Vec<u8>>

Retrieve data

Implementors§