pub struct NoFutureDateValidator;Expand description
Validates that a time log has no date in the future.
Trait Implementations§
Source§impl Validator for NoFutureDateValidator
impl Validator for NoFutureDateValidator
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 NoFutureDateValidator
impl RefUnwindSafe for NoFutureDateValidator
impl Send for NoFutureDateValidator
impl Sync for NoFutureDateValidator
impl Unpin for NoFutureDateValidator
impl UnwindSafe for NoFutureDateValidator
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