Add an error to the result
(&mut self, error: ValidationError)
| 46 | |
| 47 | /// Add an error to the result |
| 48 | pub fn add_error(&mut self, error: ValidationError) { |
| 49 | self.errors.push(error); |
| 50 | self.is_valid = false; |
| 51 | } |
| 52 | |
| 53 | /// Merge another validation result into this one |
| 54 | pub fn merge(&mut self, other: Self) { |
no outgoing calls