(object: &'a Map<String, Value>, key: &str)
| 40 | } |
| 41 | |
| 42 | fn object_string<'a>(object: &'a Map<String, Value>, key: &str) -> Option<&'a str> { |
| 43 | object |
| 44 | .get(key) |
| 45 | .or_else(|| object.get(&key.to_ascii_lowercase())) |
| 46 | .and_then(Value::as_str) |
| 47 | } |
| 48 | |
| 49 | fn discovered_devices_array(info: &Value) -> Option<&Vec<Value>> { |
| 50 | info.get("DiscoveredDevices") |
no test coverage detected