pub struct CapsuleUse {
pub capsule_id: CapsuleId,
pub capability: CapabilityKind,
pub operation: String,
pub request: Value,
pub response: Value,
}Expand description
A journaled capability use (R0.9 wave 1): one granted import call,
recorded as the output of a
RunEventKind::CapsuleCall
event. Summaries, not transcripts: the request carries the matched
scope (protocol, host, method, path) and the response the status and
body — the body is the guest’s own data, and the journal’s inline/artifact
split applies when it is large.
Fields§
§capsule_id: CapsuleIdThe capsule that exercised the capability.
capability: CapabilityKindThe capability class of the import that was called.
operation: StringThe operation within the capability (fetch, now_millis).
request: ValueThe request summary — for fetch: {protocol, host, method, path}
(never the body: request bodies are the capsule’s business, and
keeping them out of the use record keeps evidence lean).
response: ValueThe response summary — for fetch: {status, body}; for
now_millis: {millis}.