#[non_exhaustive]pub struct FileDownloadOptions {
pub overwrite: bool,
}Expand description
Options for the file-writing download methods.
Experimental.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.overwrite: boolReplace an existing regular file at the destination. Default false:
an existing path is refused. A symbolic link at the destination is
refused either way.
Implementations§
Source§impl FileDownloadOptions
impl FileDownloadOptions
Sourcepub fn with_overwrite(self, overwrite: bool) -> Self
pub fn with_overwrite(self, overwrite: bool) -> Self
Set Self::overwrite.
Trait Implementations§
Source§impl Clone for FileDownloadOptions
impl Clone for FileDownloadOptions
Source§impl Debug for FileDownloadOptions
impl Debug for FileDownloadOptions
Source§impl Default for FileDownloadOptions
impl Default for FileDownloadOptions
impl Eq for FileDownloadOptions
Source§impl PartialEq for FileDownloadOptions
impl PartialEq for FileDownloadOptions
impl StructuralPartialEq for FileDownloadOptions
Auto Trait Implementations§
impl Forget for FileDownloadOptions
impl Freeze for FileDownloadOptions
impl Move for FileDownloadOptions
impl RefUnwindSafe for FileDownloadOptions
impl Send for FileDownloadOptions
impl Sync for FileDownloadOptions
impl Unpin for FileDownloadOptions
impl UnsafeUnpin for FileDownloadOptions
impl UnwindSafe for FileDownloadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more