Skip to main content

parse_response

Function parse_response 

Source
pub fn parse_response(
    raw: &str,
    asked: &[Ask],
    backend_calibrated: bool,
) -> Result<Answered>
Expand description

Validate a wire response against what was asked: every id present with the matching type, every probability finite and in [0, 1], choice options drawn from what was offered. Anything else is LOP-E051.