Skip to main content

IngestSource

Trait IngestSource 

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

Source

fn name(&self) -> &str

Stable source name; part of the deterministic memory id.

Source

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".

Implementors§