download_analysis_result

Function download_analysis_result 

Source
pub fn download_analysis_result(
    analysis_url: &str,
    client: &Client,
) -> Result<AnalysisResult, Box<dyn Error>>
Expand description

Downloads and deserializes the analysis result from the presigned URL.

§Arguments

  • analysis_url - The presigned URL returned by get_analyze_status when ready.
  • client - A preconfigured reqwest::blocking::Client.

§Returns

An AnalysisResult containing metadata about the uploaded binary.

§Errors

Returns an error if the download fails, the server responds with a non-success status, or deserialization fails.