Skip to main content

Crate udownload

Crate udownload 

Source
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§

Error

Functions§

download
Download a file with parameters url: &str save_path: PathBuf and returns a Result<PathBuf, Error>