pub fn parse_search(body: &[u8]) -> Result<SearchAnswer, ThrustCurveError>Expand description
Reads a search’s answer.
§Errors
ThrustCurveError::Json when the body is not JSON of this shape; ThrustCurveError::Api
when the answer or one of its criteria carries the API’s error; ThrustCurveError::Count
when it returns more motors than it says match; ThrustCurveError::Field for a motor id
that isn’t 24 hexadecimal digits, or a diameter, length, thrust, impulse, burn time or weight
below zero.