Skip to main content

OutputFormatter

Trait OutputFormatter 

Source
pub trait OutputFormatter {
    // Required methods
    fn format_result(&self, result: &ValidationResult) -> String;
    fn format_report(&self, report: &Report) -> String;
}
Expand description

Output formatter trait

Required Methods§

Source

fn format_result(&self, result: &ValidationResult) -> String

Format validation result

Source

fn format_report(&self, report: &Report) -> String

Format report

Implementors§