1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! Report generation module.

mod handlebars;
mod json;

use failure::Error;

pub use self::{handlebars::Report as HandlebarsReport, json::Json};
use crate::{config::Config, results::Results};

/// Trait that represents a type that can generate a report.
pub trait Generator {
    /// Generates an actual report.
    fn generate(&mut self, config: &Config, result: &Results) -> Result<(), Error>;
}