fetch_details

Function fetch_details 

Source
pub async fn fetch_details(
    item: PackageItem,
) -> Result<PackageDetails, Box<dyn Error + Send + Sync>>
Expand description

What: Fetch package details for either official repositories or AUR, based on the item’s source.

Inputs:

  • item: Package to fetch details for.

Output:

  • Ok(PackageDetails) on success; Err if retrieval or parsing fails.

§Errors

  • Returns Err when network request fails (curl execution error)
  • Returns Err when package details cannot be fetched from official repositories or AUR
  • Returns Err when response parsing fails (invalid JSON or missing fields)