pub struct DownloadOptions
pub overwrite_existing: bool,
Options for file download operations.
The default options, which a download given none uses, overwrite existing files.
Example
Fields
overwrite_existing: boolWhether to overwrite existing files on the local file system.
Implementations
Source
pub fn with_overwrite_existing(self, overwrite: bool) -> Self
Sets whether to overwrite existing local files.
Source
pub fn set_overwrite_existing(&mut self, overwrite: bool)
Sets whether to overwrite existing local files.
Source
pub fn is_overwrite_existing(&self) -> bool
Returns whether overwriting existing files is enabled.
Trait Implementations
Source
impl Clone for DownloadOptions
Source
fn clone(&self) -> DownloadOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource