Create a successful validation result
()
| 22 | impl ValidationResult { |
| 23 | /// Create a successful validation result |
| 24 | pub fn success() -> Self { |
| 25 | Self { |
| 26 | is_valid: true, |
| 27 | errors: Vec::new(), |
| 28 | metadata: HashMap::with_capacity(4), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | /// Create a failed validation result |
| 33 | pub fn failure(errors: Vec<ValidationError>) -> Self { |
no outgoing calls
no test coverage detected