Skip to main content

SecondaryIndexExtractor

Trait SecondaryIndexExtractor 

Source
pub trait SecondaryIndexExtractor:
    Send
    + Sync
    + 'static {
    // Required method
    fn extract(
        &self,
        primary_key: &[u8],
        source_value: &[u8],
    ) -> Result<Vec<SecondaryIndexEntry>, SecondaryIndexError>;
}
Expand description

Deterministic runtime callback that derives zero or more index emissions.

Required Methods§

Source

fn extract( &self, primary_key: &[u8], source_value: &[u8], ) -> Result<Vec<SecondaryIndexEntry>, SecondaryIndexError>

Derive emissions for one source record.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§