pub fn fetch_latest_release_asset_by_prefix(
repo: &str,
prefix: &str,
) -> Result<Asset>Expand description
Fetches the first asset whose name starts with prefix from the latest
GitHub release.
Useful when the asset name includes a version number
(e.g. "plato-0.9.45.zip").
repo must be in owner/name format (e.g. "baskerville/plato").
Currently unused — asset downloads use a pinned version via
fetch_release_asset instead. Kept for potential future use.
§Errors
Returns an error if the HTTP request fails, the response cannot be parsed, or no asset matching the prefix exists in the latest release.