pub trait Validator {
// Required method
fn validate_single(&mut self, time_log: &TimeLog) -> Vec<ValidationProblem>;
}Expand description
Trait functions that a validator must implement.
Required Methods§
Sourcefn validate_single(&mut self, time_log: &TimeLog) -> Vec<ValidationProblem>
fn validate_single(&mut self, time_log: &TimeLog) -> Vec<ValidationProblem>
Validate each TimeLog on its own. Returns a Vec containing the problems found
or an empty Vec if there are none.