pub struct CaptureOptions {
pub filename: Option<DownloadNamer>,
pub timeout: Option<Duration>,
pub validate: Option<DownloadValidator>,
pub conflict: Option<DownloadConflict>,
}Expand description
Naming, validation and conflict rules one [DownloadManager::capture] owns.
Fields§
§filename: Option<DownloadNamer>Name for this download, overriding what the page suggested.
timeout: Option<Duration>Budget for the whole capture.
validate: Option<DownloadValidator>Validation for this download.
conflict: Option<DownloadConflict>Conflict policy for this download.
Implementations§
Source§impl CaptureOptions
impl CaptureOptions
Sourcepub fn validated_by(self, validate: DownloadValidator) -> Self
pub fn validated_by(self, validate: DownloadValidator) -> Self
Check this download before it is published.
Sourcepub fn on_conflict(self, conflict: DownloadConflict) -> Self
pub fn on_conflict(self, conflict: DownloadConflict) -> Self
Resolve a name collision differently for this download.
Trait Implementations§
Source§impl Clone for CaptureOptions
impl Clone for CaptureOptions
Source§fn clone(&self) -> CaptureOptions
fn clone(&self) -> CaptureOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptureOptions
impl Debug for CaptureOptions
Source§impl Default for CaptureOptions
impl Default for CaptureOptions
Source§fn default() -> CaptureOptions
fn default() -> CaptureOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureOptions
impl !UnwindSafe for CaptureOptions
impl Freeze for CaptureOptions
impl Send for CaptureOptions
impl Sync for CaptureOptions
impl Unpin for CaptureOptions
impl UnsafeUnpin for CaptureOptions
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