(context: &pb::EvidenceContext)
| 1293 | } |
| 1294 | |
| 1295 | fn evidence_context_json(context: &pb::EvidenceContext) -> serde_json::Value { |
| 1296 | serde_json::json!({ |
| 1297 | "intent_id": context.intent_id, |
| 1298 | "intent_substance_hash": context.intent_substance_hash, |
| 1299 | "intent_source_hash": context.intent_source_hash, |
| 1300 | "view_chain": context |
| 1301 | .view_chain |
| 1302 | .iter() |
| 1303 | .map(|pin| serde_json::json!({ |
| 1304 | "name": pin.name, |
| 1305 | "merkle": pin.merkle, |
| 1306 | "scope": pin.scope, |
| 1307 | })) |
| 1308 | .collect::<Vec<_>>(), |
| 1309 | }) |
| 1310 | } |
| 1311 | |
| 1312 | fn evidence_replay_json(replay: &pb::EvidenceReplay) -> serde_json::Value { |
| 1313 | serde_json::json!({ |
nothing calls this directly
no outgoing calls
no test coverage detected