Expand description
Wrapper around the crate ‘ureq’ to make downloading files easier
Example:
use udownload::download;
use std::path::PathBuf;
let downloaded_file_path: PathBuf = download("https://pokeapi.co/api/v2/pokemon/golbat", PathBuf::from("file.json")).unwrap();Enums§
Functions§
- download
- Download a file with parameters
url: &strsave_path: PathBufand returns aResult<PathBuf, Error>