(
record: &'a serde_json::Map<String, Value>,
key: &str,
)
| 445 | } |
| 446 | |
| 447 | fn object_field<'a>( |
| 448 | record: &'a serde_json::Map<String, Value>, |
| 449 | key: &str, |
| 450 | ) -> Option<&'a serde_json::Map<String, Value>> { |
| 451 | record.get(key).and_then(Value::as_object) |
| 452 | } |
| 453 | |
| 454 | fn string_field(record: &serde_json::Map<String, Value>, key: &str) -> Option<String> { |
| 455 | let value = record.get(key)?.as_str()?.trim(); |
no outgoing calls
no test coverage detected