pub enum ValidationProblem {
ExcessiveHours {
max_hours: u16,
},
MissingSummary,
FutureDate,
DuplicateEntry,
BeforeStartDate {
start_date: NaiveDate,
},
}Expand description
Possible problems in TimeLog that can be found during validation.
Variants§
ExcessiveHours
The time spent exceeds the maximum allowed.
MissingSummary
No summary was entered.
FutureDate
Entered date is in the future.
DuplicateEntry
Duplicate entry has been found (same user, date, trackable item, time spent and summary)
BeforeStartDate
TimeLog is before the configured project start date.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationProblem
impl RefUnwindSafe for ValidationProblem
impl Send for ValidationProblem
impl Sync for ValidationProblem
impl Unpin for ValidationProblem
impl UnwindSafe for ValidationProblem
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