pub trait IngestSource {
// Required methods
fn name(&self) -> &str;
fn collect(&self, root: &Path) -> Result<Vec<IngestedMemory>, IngestError>;
}Expand description
The extension point. One external system = one impl IngestSource.
Required Methods§
Sourcefn collect(&self, root: &Path) -> Result<Vec<IngestedMemory>, IngestError>
fn collect(&self, root: &Path) -> Result<Vec<IngestedMemory>, IngestError>
Read and parse whatever lives under root into memories.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".