(&self)
| 12 | |
| 13 | impl DetailableError for PaginationError { |
| 14 | fn details(&self) -> Option<HashMap<String, String>> { |
| 15 | let mut details = HashMap::new(); |
| 16 | match self { |
| 17 | PaginationError::MaxLimitExceeded { max } => { |
| 18 | details.insert("max".to_string(), max.to_string()); |
| 19 | Some(details) |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |