Skip to main content

encode_dispatch_response

Function encode_dispatch_response 

Source
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.