Skip to main content

render_payload

Function render_payload 

Source
pub fn render_payload(spec: &PipeSpec, event_data: &Value) -> Result<Vec<u8>>
Expand description

Render a spec’s mapping into the payload bytes to deliver to a socket sink.

Requires the mapping to produce a data field (the bytes); encoding is optional. Kept separate from delivery so it is unit-testable without a socket.