(&self)
| 256 | } |
| 257 | |
| 258 | pub fn schema_errors(&self) -> Vec<ValidationError> { |
| 259 | self.0 |
| 260 | .iter() |
| 261 | .filter(|err| matches!(err, ValidationError::Schema { .. })) |
| 262 | .cloned() |
| 263 | .collect() |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | impl std::error::Error for ValidationErrors { |