1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::types::file::File; use std::path::PathBuf; #[derive(Debug, Clone)] pub struct DownloadJob { pub file: File, pub path: PathBuf, } impl DownloadJob { pub fn new(file: File, path: PathBuf) -> Self { Self { file, path } } }