pub trait MetaExtractor: Sync {
// Required methods
fn root(&self, session_id: &str, payload: &Value) -> RootFields;
fn child(&self, child_id: &str, payload: &Value) -> ChildFields;
}Expand description
Decouples index rebuild from the (opaque) session payload shape: the caller knows how to read its own session JSON, the store knows the directory structure.
Required Methods§
fn root(&self, session_id: &str, payload: &Value) -> RootFields
fn child(&self, child_id: &str, payload: &Value) -> ChildFields
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".