pub struct ExcessiveHoursValidator { /* private fields */ }Expand description
Validates that a single time log does not exceed the given maximum hours.
Implementations§
Trait Implementations§
Source§impl Validator for ExcessiveHoursValidator
impl Validator for ExcessiveHoursValidator
Source§fn 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.Auto Trait Implementations§
impl Freeze for ExcessiveHoursValidator
impl RefUnwindSafe for ExcessiveHoursValidator
impl Send for ExcessiveHoursValidator
impl Sync for ExcessiveHoursValidator
impl Unpin for ExcessiveHoursValidator
impl UnwindSafe for ExcessiveHoursValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more