(info: &Value)
| 47 | } |
| 48 | |
| 49 | fn discovered_devices_array(info: &Value) -> Option<&Vec<Value>> { |
| 50 | info.get("DiscoveredDevices") |
| 51 | .or_else(|| info.get("discoveredDevices")) |
| 52 | .and_then(Value::as_array) |
| 53 | } |
| 54 | |
| 55 | fn host_discovered_devices_array(info: &Value) -> Option<&Vec<Value>> { |
| 56 | info.get("Host") |
no test coverage detected