(&self)
| 15 | |
| 16 | impl DetailableError for MapperError { |
| 17 | fn details(&self) -> Option<HashMap<String, String>> { |
| 18 | let mut details = HashMap::new(); |
| 19 | match self { |
| 20 | MapperError::MalformedUuid { malformed_uuid } => { |
| 21 | details.insert("malformed_uuid".to_string(), malformed_uuid.to_string()); |
| 22 | Some(details) |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | } |