download_asset

Function download_asset 

Source
pub fn download_asset(asset: &Asset, dest: &Path) -> Result<()>
Expand description

Downloads a release asset to dest, using GitHub authentication when available.

Uses the same authenticated client as the API calls so that assets from repositories that require authentication can be downloaded without a separate token setup.

ยงErrors

Returns an error if the download or write fails.