()
| 65 | use serde_json::json; |
| 66 | |
| 67 | fn make_rows() -> Vec<(String, serde_json::Value)> { |
| 68 | vec![ |
| 69 | ( |
| 70 | "1".into(), |
| 71 | json!({"dept": "eng", "salary": 100, "name": "Alice"}), |
| 72 | ), |
| 73 | ( |
| 74 | "2".into(), |
| 75 | json!({"dept": "eng", "salary": 120, "name": "Bob"}), |
| 76 | ), |
| 77 | ( |
| 78 | "3".into(), |
| 79 | json!({"dept": "eng", "salary": 90, "name": "Carol"}), |
| 80 | ), |
| 81 | ( |
| 82 | "4".into(), |
| 83 | json!({"dept": "sales", "salary": 80, "name": "Dave"}), |
| 84 | ), |
| 85 | ( |
| 86 | "5".into(), |
| 87 | json!({"dept": "sales", "salary": 110, "name": "Eve"}), |
| 88 | ), |
| 89 | ] |
| 90 | } |
| 91 | |
| 92 | fn numbered(n: usize) -> Vec<(String, serde_json::Value)> { |
| 93 | (1..=n) |
no outgoing calls