pub struct SitemapIndexEntry { /* private fields */ }Expand description
A sitemap index entry.
Implementations§
Source§impl SitemapIndexEntry
impl SitemapIndexEntry
Sourcepub const fn new(sitemap: SitemapUrl) -> Self
pub const fn new(sitemap: SitemapUrl) -> Self
Creates a sitemap index entry.
Sourcepub fn with_last_modified(self, last_modified: LastModified) -> Self
pub fn with_last_modified(self, last_modified: LastModified) -> Self
Sets the last-modified label.
Sourcepub fn to_index_xml(&self) -> String
pub fn to_index_xml(&self) -> String
Formats this entry as a compact XML <sitemap> block.
Trait Implementations§
Source§impl Clone for SitemapIndexEntry
impl Clone for SitemapIndexEntry
Source§fn clone(&self) -> SitemapIndexEntry
fn clone(&self) -> SitemapIndexEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 SitemapIndexEntry
impl Debug for SitemapIndexEntry
Source§impl PartialEq for SitemapIndexEntry
impl PartialEq for SitemapIndexEntry
impl Eq for SitemapIndexEntry
impl StructuralPartialEq for SitemapIndexEntry
Auto Trait Implementations§
impl Freeze for SitemapIndexEntry
impl RefUnwindSafe for SitemapIndexEntry
impl Send for SitemapIndexEntry
impl Sync for SitemapIndexEntry
impl Unpin for SitemapIndexEntry
impl UnsafeUnpin for SitemapIndexEntry
impl UnwindSafe for SitemapIndexEntry
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