Struct sitewriter::UrlEntryBuilder [−][src]
pub struct UrlEntryBuilder { /* fields omitted */ }
Builder for UrlEntry
.
Implementations
impl UrlEntryBuilder
[src]
impl UrlEntryBuilder
[src]pub fn loc(&mut self, value: Url) -> &mut Self
[src]
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.
pub fn lastmod(&mut self, value: DateTime<Utc>) -> &mut Self
[src]
The date of last modification of the file.
pub fn changefreq(&mut self, value: ChangeFreq) -> &mut Self
[src]
How frequently the page is likely to change.
pub fn priority(&mut self, value: f32) -> &mut Self
[src]
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.
pub fn build(&self) -> Result<UrlEntry, UrlEntryBuilderError>
[src]
Trait Implementations
impl Clone for UrlEntryBuilder
[src]
impl Clone for UrlEntryBuilder
[src]fn clone(&self) -> UrlEntryBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for UrlEntryBuilder
[src]
impl Default for UrlEntryBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for UrlEntryBuilder
impl RefUnwindSafe for UrlEntryBuilder
impl Send for UrlEntryBuilder
impl Send for UrlEntryBuilder
impl Sync for UrlEntryBuilder
impl Sync for UrlEntryBuilder
impl Unpin for UrlEntryBuilder
impl Unpin for UrlEntryBuilder
impl UnwindSafe for UrlEntryBuilder
impl UnwindSafe for UrlEntryBuilder