Struct sitewriter::UrlEntry[][src]

pub struct UrlEntry {
    pub loc: Url,
    pub lastmod: Option<DateTime<Utc>>,
    pub changefreq: Option<ChangeFreq>,
    pub priority: Option<f32>,
}

A sitemap url entry.

Fields

loc: Url

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.

lastmod: Option<DateTime<Utc>>

The date of last modification of the file.

changefreq: Option<ChangeFreq>

How frequently the page is likely to change.

priority: Option<f32>

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.

Implementations

impl UrlEntry[src]

pub fn new(
    loc: Url,
    lastmod: Option<DateTime<Utc>>,
    changefreq: Option<ChangeFreq>,
    priority: Option<f32>
) -> Self
[src]

Trait Implementations

impl Clone for UrlEntry[src]

impl Debug for UrlEntry[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.