Trait routee_compass::app::compass::config::builders::OutputPluginBuilder
source · 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§
sourcefn build(
&self,
parameters: &Value
) -> Result<Arc<dyn OutputPlugin>, CompassConfigurationError>
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.