Skip to main content
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: bool

Whether 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.

Returns whether overwriting existing files is enabled.

Trait Implementations

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

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

fn default() -> Self

The default options: overwriting existing files.