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§impl Debug for CaptureOptions
impl Debug for CaptureOptions
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