Skip to main content

classify_live_request

Function classify_live_request 

Source
pub fn classify_live_request(kind: &str, payload: &Value) -> Option<LiveRequest>
Expand description

Recognize a permission/approval request in one live runtime event.

Returns None for every other event, including the responses that answer these requests. The three recognized shapes are exactly the ones the adapters in crate::runtime surface; each is matched on its own protocol’s spelling rather than on a guess about the harness.