(value: &Value, keys: &[&str])
| 465 | } |
| 466 | |
| 467 | fn text_field(value: &Value, keys: &[&str]) -> Option<String> { |
| 468 | keys.iter() |
| 469 | .find_map(|key| value.get(*key).and_then(Value::as_str)) |
| 470 | .filter(|text| !text.is_empty()) |
| 471 | .map(str::to_string) |
| 472 | } |
| 473 | |
| 474 | fn prompt_like_text(parsed: &Value) -> Option<String> { |
| 475 | [ |
no test coverage detected