Struct SitemapEntry
pub struct SitemapEntry { /* private fields */ }Expand description
A sitemap URL entry.
Implementations§
§impl SitemapEntry
impl SitemapEntry
pub const fn new(url: SitemapUrl) -> SitemapEntry
pub const fn new(url: SitemapUrl) -> SitemapEntry
Creates a sitemap entry from a URL.
pub fn with_last_modified(self, last_modified: LastModified) -> SitemapEntry
pub fn with_last_modified(self, last_modified: LastModified) -> SitemapEntry
Sets the last-modified label.
pub const fn with_change_frequency(
self,
frequency: ChangeFrequency,
) -> SitemapEntry
pub const fn with_change_frequency( self, frequency: ChangeFrequency, ) -> SitemapEntry
Sets the change-frequency label.
pub const fn with_priority(self, priority: Priority) -> SitemapEntry
pub const fn with_priority(self, priority: Priority) -> SitemapEntry
Sets the priority value.
pub const fn url(&self) -> &SitemapUrl
pub const fn url(&self) -> &SitemapUrl
Returns the entry URL.
pub fn to_url_xml(&self) -> String
pub fn to_url_xml(&self) -> String
Formats this entry as a compact XML <url> block.
Trait Implementations§
§impl Clone for SitemapEntry
impl Clone for SitemapEntry
§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 more§impl Debug for SitemapEntry
impl Debug for SitemapEntry
§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