#[non_exhaustive]pub struct ResolvedOptions {Show 31 fields
pub destination: PathBuf,
pub output: Option<PathBuf>,
pub connections: usize,
pub per_host: usize,
pub per_host_active: usize,
pub global: usize,
pub rate_limit: Option<u64>,
pub per_host_rate_limit: Option<u64>,
pub task_rate_limit: Option<u64>,
pub file_jobs: usize,
pub content_cache: bool,
pub content_cache_dir: PathBuf,
pub disk_space_check: bool,
pub mirrors: Vec<Url>,
pub segment_size: u64,
pub resume: bool,
pub verify: VerifyMode,
pub checksum: Option<Checksum>,
pub extract: bool,
pub extract_dir: Option<PathBuf>,
pub delete_archive: bool,
pub cache: bool,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub request: RequestOptions,
pub overwrite: bool,
pub rename_on_conflict: bool,
pub retries: u32,
pub timeout: Duration,
pub connect_timeout: Duration,
pub user_agent: String,
}Expand description
Options after task overrides and config defaults have been resolved.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.destination: PathBufRoot directory for the task’s output files.
output: Option<PathBuf>Explicit output path, if one was requested.
connections: usizeEffective connection count for this task.
per_host: usizeEffective HTTP idle-connection limit per host.
per_host_active: usizeMaximum active HTTP file-transfer requests per host carried from configuration.
global: usizeGlobal active HTTP file-transfer request budget carried from configuration.
rate_limit: Option<u64>Global bandwidth limit in bytes per second, if configured.
per_host_rate_limit: Option<u64>Per-host bandwidth limit in bytes per second, if configured.
task_rate_limit: Option<u64>Additional per-task bandwidth limit in bytes per second, if configured.
file_jobs: usizeNumber of files downloaded concurrently within this task.
content_cache: boolWhether verified files are reused through the content-addressed cache.
content_cache_dir: PathBufRoot of the content-addressed cache.
disk_space_check: boolWhether to preflight the destination filesystem’s free space.
mirrors: Vec<Url>Alternate HTTP(S) URLs for the same file.
segment_size: u64Byte size of each ranged HTTP segment.
resume: boolWhether resume is enabled for this task.
verify: VerifyModeEffective checksum verification policy.
checksum: Option<Checksum>Expected checksum supplied by the task, if any.
extract: boolWhether archives should be extracted after download.
extract_dir: Option<PathBuf>Directory to extract archives into; None means the destination.
delete_archive: boolWhether to delete the archive after extraction.
cache: boolWhether to populate the provider cache for Hub tasks.
include: Vec<String>Include glob filters passed from the task.
exclude: Vec<String>Exclude glob filters passed from the task.
request: RequestOptionsMerged request options: config headers plus task overrides.
overwrite: boolWhether existing destination files are replaced.
rename_on_conflict: boolWhether conflicting destinations are renamed.
retries: u32Effective retry count for failed transfers.
timeout: DurationEffective total request timeout.
connect_timeout: DurationEffective connection timeout.
user_agent: StringEffective User-Agent header.