pub struct LinkExtractor { /* private fields */ }Expand description
Link extractor
Implementations§
Source§impl LinkExtractor
impl LinkExtractor
Sourcepub fn with_options(
self,
extract_navigation: bool,
extract_footer: bool,
) -> Self
pub fn with_options( self, extract_navigation: bool, extract_footer: bool, ) -> Self
Configure extraction
Sourcepub fn extract_canonical(&self, html: &str, base_url: &Url) -> Option<Url>
pub fn extract_canonical(&self, html: &str, base_url: &Url) -> Option<Url>
Extract the canonical link
Sourcepub fn extract_pagination(&self, html: &str, base_url: &Url) -> PaginationLinks
pub fn extract_pagination(&self, html: &str, base_url: &Url) -> PaginationLinks
Extract pagination links
Sourcepub fn extract_hreflang(&self, html: &str, base_url: &Url) -> Vec<HreflangLink>
pub fn extract_hreflang(&self, html: &str, base_url: &Url) -> Vec<HreflangLink>
Extract hreflang links
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkExtractor
impl RefUnwindSafe for LinkExtractor
impl Send for LinkExtractor
impl Sync for LinkExtractor
impl Unpin for LinkExtractor
impl UnwindSafe for LinkExtractor
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