pub trait KnowledgeBaseInterface: KnowledgeBase {
// Required methods
fn insert(
&self,
collection: impl Into<String>,
key: impl Into<String>,
data: &impl Serialize,
) -> Result<()>;
fn retrieve<T: DeserializeOwned>(
&self,
collection: impl Into<String>,
key: impl Into<String>,
) -> Result<T>;
}Expand description
High level interface to the knowledge base
Required Methods§
Object Safety§
This trait is not object safe.