pub struct ValidationResult<'a> {
pub time_log: &'a TimeLog,
pub problems: Vec<ValidationProblem>,
}Expand description
Stores the result of a validation run.
Fields§
§time_log: &'a TimeLogThe time log that was validated.
problems: Vec<ValidationProblem>The problems found in this time log.
Implementations§
Source§impl ValidationResult<'_>
impl ValidationResult<'_>
Sourcepub fn has_problems(&self, problem_type: &ValidationProblem) -> bool
pub fn has_problems(&self, problem_type: &ValidationProblem) -> bool
Returns true if there is at least one problem of the given type.
Auto Trait Implementations§
impl<'a> Freeze for ValidationResult<'a>
impl<'a> RefUnwindSafe for ValidationResult<'a>
impl<'a> Send for ValidationResult<'a>
impl<'a> Sync for ValidationResult<'a>
impl<'a> Unpin for ValidationResult<'a>
impl<'a> UnwindSafe for ValidationResult<'a>
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