pub struct SitemapLoader { /* private fields */ }Expand description
Sitemap loader
Loads pages from a sitemap.xml URL or content, extracting the body text.
Implementations§
Source§impl SitemapLoader
impl SitemapLoader
Sourcepub fn with_max_pages(self, max: usize) -> Self
pub fn with_max_pages(self, max: usize) -> Self
Sets the maximum number of pages to crawl
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the per-HTTP-request timeout (H8, default 30s)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SitemapLoader
impl RefUnwindSafe for SitemapLoader
impl Send for SitemapLoader
impl Sync for SitemapLoader
impl Unpin for SitemapLoader
impl UnsafeUnpin for SitemapLoader
impl UnwindSafe for SitemapLoader
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