sitemap_iter

Struct UrlEntry

source
pub struct UrlEntry<'a> {
    pub location: &'a str,
    pub last_modified: Option<&'a str>,
    pub change_frequency: Option<Frequency>,
    pub priority: Option<f32>,
}
Expand description

The data of a entry in the urlset.

See the official spec for more details.

Fields§

§location: &'a str

The location of this entry.

<loc>

I recommend using http::Uri to parse this, then extract the Uri::path().

§last_modified: Option<&'a str>

The date of last modification.

<lastmod>

Format should be in W3C Datetime.

§change_frequency: Option<Frequency>

The frequency of change in this resource.

<changefreq>