Skip to main content

decode_preview_hits

Function decode_preview_hits 

Source
pub fn decode_preview_hits(response: &Value) -> PreviewHits
Expand description

Decode a preview-hits response, tolerating a malformed body as empty.

Fixtures and offline callers use this path; the live preview_hits uses the checked decoder so a malformed success body fails instead of reading as zero.