(value: &Value)
| 1105 | } |
| 1106 | |
| 1107 | fn record_timestamp(value: &Value) -> Option<i64> { |
| 1108 | value |
| 1109 | .get("timestamp") |
| 1110 | .or_else(|| value.get("created_at")) |
| 1111 | .and_then(|timestamp| { |
| 1112 | timestamp |
| 1113 | .as_i64() |
| 1114 | .or_else(|| timestamp.as_str().and_then(|s| s.parse::<i64>().ok())) |
| 1115 | }) |
| 1116 | } |
| 1117 | |
| 1118 | fn event_location_provenance(event: &Value) -> &str { |
| 1119 | event |
no test coverage detected