pub trait IndicatorCalculator: Debug {
// Required methods
fn name(&self) -> String;
fn calculate(&mut self, path: &Path) -> Result<Option<Value>, Error>;
fn metadata(&self) -> Result<Option<Value>, Error>;
}
Expand description
Wrapper for the logic that calculates toxicity indicators