Merge another validation result into this one
(&mut self, other: Self)
| 52 | |
| 53 | /// Merge another validation result into this one |
| 54 | pub fn merge(&mut self, other: Self) { |
| 55 | if !other.is_valid { |
| 56 | self.is_valid = false; |
| 57 | } |
| 58 | self.errors.extend(other.errors); |
| 59 | self.metadata.extend(other.metadata); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /// A validation error |
no outgoing calls