Skip to main content

PageEnricher

Trait PageEnricher 

Source
pub trait PageEnricher: Send + Sync {
    // Required method
    fn enrich(
        &self,
        page: Page<RowMap>,
        context: EnrichContext,
    ) -> ExtensionFuture<Page<RowMap>>;
}
Expand description

Asynchronous page-level result enhancement. Implementations should batch external lookups and must not change count, summaries, or cursor metadata.

Required Methods§

Source

fn enrich( &self, page: Page<RowMap>, context: EnrichContext, ) -> ExtensionFuture<Page<RowMap>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§