Skip to main content

structured_operation_response

Function structured_operation_response 

Source
pub fn structured_operation_response(
    surface: &PackageSurface,
    operation: OperationId,
    result: Value,
) -> SurfaceResponse
Expand description

Builds a structured response for an operation listed in a package surface.

This keeps the concrete operation result at the top level for compatibility, while adding the common title, message, summary, and result fields expected by package-surface UIs.