pub struct Sitemap { /* private fields */ }Expand description
Represents a complete sitemap.
Implementations§
Source§impl Sitemap
impl Sitemap
Sourcepub fn entry_count(&self) -> usize
pub fn entry_count(&self) -> usize
Entry count of the sitemap.
Sourcepub fn add_entry(&mut self, entry: SiteMapData) -> SitemapResult<()>
pub fn add_entry(&mut self, entry: SiteMapData) -> SitemapResult<()>
Sourcepub fn to_xml(&self) -> SitemapResult<String>
pub fn to_xml(&self) -> SitemapResult<String>
Generates the XML representation of the sitemap.
§Returns
A string containing the XML representation of the sitemap, or an error if generation fails.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Sitemap
impl Freeze for Sitemap
impl RefUnwindSafe for Sitemap
impl Send for Sitemap
impl Sync for Sitemap
impl Unpin for Sitemap
impl UnsafeUnpin for Sitemap
impl UnwindSafe for Sitemap
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