(map: &serde_json::Map<String, serde_json::Value>, key: &str)
| 45 | } |
| 46 | |
| 47 | fn extract_i64(map: &serde_json::Map<String, serde_json::Value>, key: &str) -> Option<i64> { |
| 48 | map.get(key).and_then(|v| v.as_i64()) |
| 49 | } |
| 50 | |
| 51 | #[cfg(test)] |
| 52 | mod tests { |
no test coverage detected