pub struct CrawlOptions { /* private fields */ }Expand description
Options for crawling a site.
Implementations§
Source§impl CrawlOptions
impl CrawlOptions
Sourcepub fn settle(self, settle: Duration) -> Self
pub fn settle(self, settle: Duration) -> Self
Extra wait after load event per page (default: 0).
Sourcepub fn include(self, patterns: &[&str]) -> Self
pub fn include(self, patterns: &[&str]) -> Self
URL path glob patterns to include (e.g. "/docs/**").
Sourcepub fn exclude(self, patterns: &[&str]) -> Self
pub fn exclude(self, patterns: &[&str]) -> Self
URL path glob patterns to exclude (e.g. "/docs/archive/**").
Sourcepub fn selector(self, selector: impl Into<String>) -> Self
pub fn selector(self, selector: impl Into<String>) -> Self
CSS selector to extract a specific section per page.
Sourcepub fn user_agent(self, ua: impl Into<String>) -> Self
pub fn user_agent(self, ua: impl Into<String>) -> Self
Override the User-Agent string for all pages in this crawl.
Trait Implementations§
Source§impl Clone for CrawlOptions
impl Clone for CrawlOptions
Source§fn clone(&self) -> CrawlOptions
fn clone(&self) -> CrawlOptions
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 moreAuto Trait Implementations§
impl Freeze for CrawlOptions
impl RefUnwindSafe for CrawlOptions
impl Send for CrawlOptions
impl Sync for CrawlOptions
impl Unpin for CrawlOptions
impl UnsafeUnpin for CrawlOptions
impl UnwindSafe for CrawlOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert