Expand description
This module contains methods to validate TimeLogs and report possible problems.
They are implemented via the validator chain pattern.
Structs§
- Before
Start Date Validator - Validates that a time log date is not before the project start date.
- Duplicates
Validator - Validates that a time log does not contain duplicates (same user, date, trackable item, time spent and summary)
- Excessive
Hours Validator - Validates that a single time log does not exceed the given maximum hours.
- HasSummary
Validator - Validates that a time log has a summary.
- NoFuture
Date Validator - Validates that a time log has no date in the future.
- Time
LogValidator - The main validator that runs all validators. Add the other validators to this one with
TimeLogValidator::with_validator, then callTimeLogValidator::validateto run the validation. - Validation
Result - Stores the result of a validation run.
Enums§
- Validation
Problem - Possible problems in
TimeLogthat can be found during validation.
Traits§
- Validator
- Trait functions that a validator must implement.