(
payload: &serde_json::Value,
)
| 1007 | } |
| 1008 | |
| 1009 | fn hook_payload_object( |
| 1010 | payload: &serde_json::Value, |
| 1011 | ) -> Option<&serde_json::Map<String, serde_json::Value>> { |
| 1012 | payload |
| 1013 | .get("output") |
| 1014 | .and_then(|value| value.as_object()) |
| 1015 | .or_else(|| payload.as_object()) |
| 1016 | .or_else(|| payload.get("data").and_then(|value| value.as_object())) |
| 1017 | } |
| 1018 | |
| 1019 | fn parse_string_array(value: &serde_json::Value) -> Option<Vec<String>> { |
| 1020 | value.as_array().map(|items| { |
no test coverage detected