Struct SitemapIndexEntry
pub struct SitemapIndexEntry { /* private fields */ }Expand description
A sitemap index entry.
Implementations§
§impl SitemapIndexEntry
impl SitemapIndexEntry
pub const fn new(sitemap: SitemapUrl) -> SitemapIndexEntry
pub const fn new(sitemap: SitemapUrl) -> SitemapIndexEntry
Creates a sitemap index entry.
pub fn with_last_modified(
self,
last_modified: LastModified,
) -> SitemapIndexEntry
pub fn with_last_modified( self, last_modified: LastModified, ) -> SitemapIndexEntry
Sets the last-modified label.
pub fn to_index_xml(&self) -> String
pub fn to_index_xml(&self) -> String
Formats this entry as a compact XML <sitemap> block.
Trait Implementations§
§impl Clone for SitemapIndexEntry
impl Clone for SitemapIndexEntry
§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 more§impl Debug for SitemapIndexEntry
impl Debug for SitemapIndexEntry
§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