(raw: &Value, path: &[&str])
| 180 | } |
| 181 | |
| 182 | fn value_at(raw: &Value, path: &[&str]) -> Option<String> { |
| 183 | let mut current = raw; |
| 184 | for key in path { |
| 185 | current = current.get(*key)?; |
| 186 | } |
| 187 | current.as_str().map(ToOwned::to_owned) |
| 188 | } |
| 189 | |
| 190 | fn with_hermes_provider(mut raw: Value) -> Value { |
| 191 | if let Value::Object(ref mut map) = raw { |
no test coverage detected