Struct sitewriter::UrlEntryBuilder
source · pub struct UrlEntryBuilder { /* private fields */ }
Expand description
Builder for UrlEntry
.
Implementations§
source§impl UrlEntryBuilder
impl UrlEntryBuilder
sourcepub fn loc(&mut self, value: Url) -> &mut Self
pub fn loc(&mut self, value: Url) -> &mut Self
URL of the page.
This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters.
sourcepub fn lastmod(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn lastmod(&mut self, value: DateTime<Utc>) -> &mut Self
The date of last modification of the file.
sourcepub fn changefreq(&mut self, value: ChangeFreq) -> &mut Self
pub fn changefreq(&mut self, value: ChangeFreq) -> &mut Self
How frequently the page is likely to change.
sourcepub fn priority(&mut self, value: f32) -> &mut Self
pub fn priority(&mut self, value: f32) -> &mut Self
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0.
This value does not affect how your pages are compared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers.
Trait Implementations§
source§impl Clone for UrlEntryBuilder
impl Clone for UrlEntryBuilder
source§fn clone(&self) -> UrlEntryBuilder
fn clone(&self) -> UrlEntryBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for UrlEntryBuilder
impl Send for UrlEntryBuilder
impl Sync for UrlEntryBuilder
impl Unpin for UrlEntryBuilder
impl UnwindSafe for UrlEntryBuilder
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