fetch_release_asset

Function fetch_release_asset 

Source
pub fn fetch_release_asset(
    repo: &str,
    tag: &str,
    asset_name: &str,
) -> Result<Asset>
Expand description

Fetches the named asset from a GitHub release.

repo must be in owner/name format (e.g. "pgaskin/NickelMenu"). tag must include the v prefix if the release uses one (e.g. "v0.6.0").

ยงErrors

Returns an error if the HTTP request fails, the response cannot be parsed, or no asset with the given name exists in the release.