pub fn encode_dispatch_response(
message: &DispatchResponse,
) -> Result<Vec<u8>, Error>Expand description
Encodes a typed response as JSON bytes for external producers.
ยงErrors
Returns serde_json::Error if the JSON payload cannot be serialized.