pub struct DownloadOptions {
pub behavior: DownloadBehavior,
pub download_path: Option<PathBuf>,
pub events_enabled: Option<bool>,
}Expand description
Configuration for download behavior within a context.
Fields§
§behavior: DownloadBehavior§download_path: Option<PathBuf>§events_enabled: Option<bool>Implementations§
Source§impl DownloadOptions
impl DownloadOptions
pub fn new(behavior: DownloadBehavior) -> Self
pub fn with_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn with_events_enabled(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
Source§fn clone(&self) -> DownloadOptions
fn clone(&self) -> DownloadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnwindSafe for DownloadOptions
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