pub struct DuplicatesValidator { /* private fields */ }Expand description
Validates that a time log does not contain duplicates (same user, date, trackable item, time spent and summary)
Implementations§
Trait Implementations§
Source§impl Default for DuplicatesValidator
impl Default for DuplicatesValidator
Source§impl Validator for DuplicatesValidator
impl Validator for DuplicatesValidator
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 DuplicatesValidator
impl RefUnwindSafe for DuplicatesValidator
impl Send for DuplicatesValidator
impl Sync for DuplicatesValidator
impl Unpin for DuplicatesValidator
impl UnwindSafe for DuplicatesValidator
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