Skip to main content

is_operations_envelope

Function is_operations_envelope 

Source
pub fn is_operations_envelope(value: &Value) -> bool
Expand description

Whether a value is an A2UI operations envelope.

This is the frontend’s content sniff: presence of the key, carrying an array. A payload from wrap_error_envelope does not have the key and so does not match, which is what keeps a failure from being mistaken for a surface.