Function analyze_program

Source
pub fn analyze_program(
    file_id: String,
    pdb_file_id: Option<String>,
    client: &Client,
    api_key: &str,
) -> Result<AnalysisResult, Error>
Expand description

Analyzes a previously uploaded binary file and optionally its PDB file.

§Arguments

  • file_id - UUID of the uploaded binary file.
  • pdb_file_id - Optional UUID of the associated PDB file.
  • client - A preconfigured reqwest::blocking::Client.
  • api_key - Your CodeDefender API key.

§Returns

An AnalysisResult containing metadata about the uploaded binary.

§Errors

Returns an error if the request fails or the server responds with a non-success status. Panics if JSON deserialization fails (future versions should return a custom error instead).