MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / record_timestamp

Function record_timestamp

src/sessions/cursor.rs:1107–1116  ·  view source on GitHub ↗
(value: &Value)

Source from the content-addressed store, hash-verified

1105}
1106
1107fn 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
1118fn event_location_provenance(event: &Value) -> &str {
1119 event

Callers 2

event_messageFunction · 0.85
event_dispatch_messagesFunction · 0.85

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected