Skip to main content

ArtefactStore

Trait ArtefactStore 

Source
pub trait ArtefactStore {
    // Required method
    fn make_readable(
        &self,
        key: &str,
        json: &str,
    ) -> Result<PathBuf, EngineError>;
}
Expand description

Somewhere the model can read the pre-group document from (ADR 0022).

The grouping stage hands the model a path, not a payload, so the need is “make this readable and tell me where” — one call, because a path the caller composed itself would be a path the adapter never agreed to.

Keys are the grouping cache’s keys. An implementation MUST treat them as opaque, exactly as GroupingCache must.

Required Methods§

Source

fn make_readable(&self, key: &str, json: &str) -> Result<PathBuf, EngineError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§