pub async fn fetch_all_with_errors(
query: String,
) -> (Vec<PackageItem>, Vec<String>)Expand description
What: Fetch search results from AUR and return items along with any error messages.
Input:
queryraw query string to search
Output:
- Tuple
(items, errors)whereitemsarePackageItems found anderrorsare human-readable messages for partial failures
Details:
- Percent-encodes the query and calls the AUR RPC v5 search endpoint in a blocking task, maps up to 200 results into
PackageItems, and collects any network/parse failures as error strings.