Struct sitewriter::UrlEntryBuilder[][src]

pub struct UrlEntryBuilder { /* fields omitted */ }

Builder for UrlEntry.

Implementations

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]

Builds a new UrlEntry.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for UrlEntryBuilder[src]

impl Default for UrlEntryBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.