pub struct CrawlConfig {
pub max_depth: usize,
pub preserve_domain: bool,
}Expand description
Configuration for recursive crawling.
The crawler first discovers links level-by-level using get_urls, then
performs one final batch_fetch over the discovered URL set.
Fields§
§max_depth: usizeMaximum number of link-expansion steps from the seed URL.
0 means only the seed URL is fetched in the final batch.
preserve_domain: boolIf true, only URLs on the same origin as the seed URL are followed.
In practice this preserves the seed host and effective port, which keeps a crawl pinned to the same site by default.
Trait Implementations§
Source§impl Clone for CrawlConfig
impl Clone for CrawlConfig
Source§fn clone(&self) -> CrawlConfig
fn clone(&self) -> CrawlConfig
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 moreSource§impl Debug for CrawlConfig
impl Debug for CrawlConfig
Auto Trait Implementations§
impl Freeze for CrawlConfig
impl RefUnwindSafe for CrawlConfig
impl Send for CrawlConfig
impl Sync for CrawlConfig
impl Unpin for CrawlConfig
impl UnsafeUnpin for CrawlConfig
impl UnwindSafe for CrawlConfig
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