Skip to main content

FlussoDocument

Trait FlussoDocument 

Source
pub trait FlussoDocument {
    const PATH: &'static [Segment];
}
Expand description

A view onto a flusso-maintained index — the root document or any of its nested element projections. Every struct #[derive(FlussoDocument)] generates carries a PATH: the chain of container levels from the index root down to this view, which a nesting-aware sort reads to render the right nested clause. The root’s PATH is empty.

The index-pointing operations (query/get, the index name + hash) live on the FlussoIndex supertrait, emitted only for the root — so a child projection cannot start a search.

Required Associated Constants§

Source

const PATH: &'static [Segment]

This view’s position from the index root, outermost first. Empty for the root and for any flattened-object scope (no nested boundary above it).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§