Skip to main content

parse_bulk_action

Function parse_bulk_action 

Source
pub fn parse_bulk_action(line: &[u8]) -> Result<ParsedAction, RewriteError>
Expand description

Parses one bulk action line into a ParsedAction — its verb and metadata — without consuming the source line, the per-op entry point for the streaming demux (ADR-014 stage 4). Validates the single-key {verb: {…}} shape like parse_bulk.

§Errors

RewriteError::InvalidJson if the line is not JSON, or RewriteError::MalformedBulkAction if it is not a single-key action object.