pub fn parse_download(body: &[u8]) -> Result<DownloadAnswer, ThrustCurveError>Expand description
Reads a download’s answer.
§Errors
ThrustCurveError::Json when the body is not JSON of this shape; ThrustCurveError::Api
when it carries the API’s error; ThrustCurveError::Field for a motor id that isn’t 24
hexadecimal digits, or a file’s data that isn’t base64. A file that decodes but isn’t UTF-8
text is kept: DataFile::text reports it, for that file alone.