pub struct CrawlConfig {
pub enabled: bool,
pub max_pages: usize,
pub max_depth: usize,
pub respect_robots: bool,
pub use_sitemap: bool,
}Expand description
HTTP crawl and discovery options (URL targets).
Fields§
§enabled: boolEnable same-origin HTTP crawl (off by default for backward compatibility).
max_pages: usizeMaximum pages to fetch when crawling from a URL seed.
max_depth: usizeMaximum link depth from the seed URL.
respect_robots: boolHonor robots.txt disallow rules when crawling.
use_sitemap: boolDiscover URLs from sitemap.xml at the site root when crawling.
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 (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 CrawlConfig
impl Debug for CrawlConfig
Source§impl Default for CrawlConfig
impl Default for CrawlConfig
Source§impl<'de> Deserialize<'de> for CrawlConfig
impl<'de> Deserialize<'de> for CrawlConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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