pub trait OutputPluginBuilder {
    // Required method
    fn build(
        &self,
        parameters: &Value
    ) -> Result<Arc<dyn OutputPlugin>, CompassConfigurationError>;
}
Expand description

A OutputPluginBuilder takes a JSON object describing the configuration of an input plugin and builds a OutputPlugin.

A OutputPluginBuilder instance should be an empty struct that implements this trait.

Required Methods§

source

fn build( &self, parameters: &Value ) -> Result<Arc<dyn OutputPlugin>, CompassConfigurationError>

Builds a OutputPlugin from JSON configuration.

§Arguments
  • parameters - the contents of an element in the “output_plugin” array TOML config section
§Returns

A OutputPlugin designed to persist the duration of the CompassApp.

Implementors§