Skip to main content

decode_bulk_outcome

Function decode_bulk_outcome 

Source
pub fn decode_bulk_outcome(body: &Value) -> Result<BulkOutcome>
Expand description

Decode a _bulk_action response summary, refusing a malformed success body.

A missing or mistyped counter, or a total that contradicts the per-outcome counters, must fail rather than read as “nothing happened”.