pub struct SitemapEntry { /* private fields */ }Expand description
A sitemap URL entry.
Implementations§
Source§impl SitemapEntry
impl SitemapEntry
Sourcepub const fn new(url: SitemapUrl) -> Self
pub const fn new(url: SitemapUrl) -> Self
Creates a sitemap entry from a URL.
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 const fn with_change_frequency(self, frequency: ChangeFrequency) -> Self
pub const fn with_change_frequency(self, frequency: ChangeFrequency) -> Self
Sets the change-frequency label.
Sourcepub const fn with_priority(self, priority: Priority) -> Self
pub const fn with_priority(self, priority: Priority) -> Self
Sets the priority value.
Sourcepub const fn url(&self) -> &SitemapUrl
pub const fn url(&self) -> &SitemapUrl
Returns the entry URL.
Sourcepub fn to_url_xml(&self) -> String
pub fn to_url_xml(&self) -> String
Formats this entry as a compact XML <url> block.
Trait Implementations§
Source§impl Clone for SitemapEntry
impl Clone for SitemapEntry
Source§fn clone(&self) -> SitemapEntry
fn clone(&self) -> SitemapEntry
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 SitemapEntry
impl Debug for SitemapEntry
Source§impl PartialEq for SitemapEntry
impl PartialEq for SitemapEntry
impl StructuralPartialEq for SitemapEntry
Auto Trait Implementations§
impl Freeze for SitemapEntry
impl RefUnwindSafe for SitemapEntry
impl Send for SitemapEntry
impl Sync for SitemapEntry
impl Unpin for SitemapEntry
impl UnsafeUnpin for SitemapEntry
impl UnwindSafe for SitemapEntry
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