pub trait EnrichmentTableConfig:
NamedComponent
+ Debug
+ Send
+ Sync {
// Required method
async fn build(
&self,
globals: &GlobalOptions,
) -> Result<Box<dyn Table + Send + Sync>>;
// Provided method
fn sink_config(&self) -> Option<Box<dyn SinkConfig>> { ... }
}
Expand description
Generalized interface for describing and building enrichment table components.
Required Methods§
sourceasync fn build(
&self,
globals: &GlobalOptions,
) -> Result<Box<dyn Table + Send + Sync>>
async fn build( &self, globals: &GlobalOptions, ) -> Result<Box<dyn Table + Send + Sync>>
Builds the enrichment table with the given globals.
If the enrichment table is built successfully, Ok(...)
is returned containing the
enrichment table.
§Errors
If an error occurs while building the enrichment table, an error variant explaining the issue is returned.
Provided Methods§
fn sink_config(&self) -> Option<Box<dyn SinkConfig>>
Object Safety§
This trait is not object safe.