(&self)
| 248 | } |
| 249 | |
| 250 | pub fn field_errors(&self) -> Vec<ValidationError> { |
| 251 | self.0 |
| 252 | .iter() |
| 253 | .filter(|err| matches!(err, ValidationError::Field { .. })) |
| 254 | .cloned() |
| 255 | .collect() |
| 256 | } |
| 257 | |
| 258 | pub fn schema_errors(&self) -> Vec<ValidationError> { |
| 259 | self.0 |