pub struct SitemapParser;Expand description
Parser for sitemap XML files
Implementations§
Source§impl SitemapParser
impl SitemapParser
Sourcepub fn parse_file<P: AsRef<Path>>(path: P) -> Result<Vec<UrlEntry>>
pub fn parse_file<P: AsRef<Path>>(path: P) -> Result<Vec<UrlEntry>>
Parse a sitemap from a file
Sourcepub fn parse_compressed<P: AsRef<Path>>(path: P) -> Result<Vec<UrlEntry>>
pub fn parse_compressed<P: AsRef<Path>>(path: P) -> Result<Vec<UrlEntry>>
Parse a compressed sitemap from a file
Sourcepub fn parse_index_string(xml: &str) -> Result<Vec<SitemapIndexEntry>>
pub fn parse_index_string(xml: &str) -> Result<Vec<SitemapIndexEntry>>
Parse a sitemap index from a string
Sourcepub fn parse_index_file<P: AsRef<Path>>(
path: P,
) -> Result<Vec<SitemapIndexEntry>>
pub fn parse_index_file<P: AsRef<Path>>( path: P, ) -> Result<Vec<SitemapIndexEntry>>
Parse a sitemap index from a file
Sourcepub fn parse_index_compressed<P: AsRef<Path>>(
path: P,
) -> Result<Vec<SitemapIndexEntry>>
pub fn parse_index_compressed<P: AsRef<Path>>( path: P, ) -> Result<Vec<SitemapIndexEntry>>
Parse a compressed sitemap index from a file
Auto Trait Implementations§
impl Freeze for SitemapParser
impl RefUnwindSafe for SitemapParser
impl Send for SitemapParser
impl Sync for SitemapParser
impl Unpin for SitemapParser
impl UnwindSafe for SitemapParser
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