pub struct TaskOptions {Show 21 fields
pub output: Option<PathBuf>,
pub connections: Option<usize>,
pub rate_limit: Option<u64>,
pub file_jobs: Option<usize>,
pub mirrors: Vec<Url>,
pub priority: Option<i32>,
pub resume: Option<bool>,
pub verify: Option<VerifyMode>,
pub checksum: Option<Checksum>,
pub extract: Option<bool>,
pub extract_dir: Option<PathBuf>,
pub delete_archive: Option<bool>,
pub cache: Option<bool>,
pub content_cache: Option<bool>,
pub request: RequestOptions,
pub revision: Option<String>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub overwrite: bool,
pub rename_on_conflict: bool,
pub force: bool,
}Expand description
Per-task overrides captured when a task is added. Unset fields fall back to
the corresponding Config defaults.
Fields§
§output: Option<PathBuf>Output file or directory override for a single-file direct link.
connections: Option<usize>Number of parallel connections used for this task.
rate_limit: Option<u64>Additional bandwidth cap for this task in bytes per second. None or
Some(0) means no task-specific cap; the global limit still applies.
file_jobs: Option<usize>Number of files downloaded concurrently within this task.
mirrors: Vec<Url>Alternate HTTP(S) URLs for the same file. They are tried after the primary URL fails and must pass a size/validator compatibility check.
priority: Option<i32>Queue priority; larger values are scheduled first.
resume: Option<bool>Whether to resume from existing partial data.
verify: Option<VerifyMode>Checksum verification policy for this task.
checksum: Option<Checksum>Expected checksum for the downloaded content.
extract: Option<bool>Whether to extract archives after downloading.
extract_dir: Option<PathBuf>Directory to extract archives into.
delete_archive: Option<bool>Whether to delete the archive after successful extraction.
cache: Option<bool>Use the provider cache for Hub tasks (HF-compatible layout for HF).
content_cache: Option<bool>Reuse verified files through the content-addressed cache.
request: RequestOptionsPer-task headers, authentication and cross-origin policy.
revision: Option<String>Hub revision (branch, tag or commit) to download.
include: Vec<String>Glob patterns selecting which Hub or BitTorrent files to download.
exclude: Vec<String>Glob patterns excluding Hub or BitTorrent files from the download.
overwrite: boolOverwrite existing destination files.
rename_on_conflict: boolRename conflicting destinations (name-1.ext, name-2.ext, …)
instead of failing.
force: boolAdd-time only; persisted for diagnostics.