start_analyze

Function start_analyze 

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

Starts analysis of 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

A Result<String, Box<dyn Error>> containing the execution ID for polling.

§Errors

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