(
source: &Map<String, Value>,
target: &mut Map<String, Value>,
target_key: &str,
candidate_keys: &[&str],
)
| 518 | } |
| 519 | |
| 520 | fn copy_first( |
| 521 | source: &Map<String, Value>, |
| 522 | target: &mut Map<String, Value>, |
| 523 | target_key: &str, |
| 524 | candidate_keys: &[&str], |
| 525 | ) { |
| 526 | if let Some(value) = first_value(source, candidate_keys) { |
| 527 | target.insert(target_key.to_string(), value); |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | fn synthesize_model(source: &Map<String, Value>) -> Option<Value> { |
| 532 | let model_id = first_value(source, &["modelID", "model_id"])?; |
no test coverage detected