[][src]Struct sitemap::structs::UrlEntry

pub struct UrlEntry {
    pub loc: Location,
    pub lastmod: LastMod,
    pub changefreq: ChangeFreq,
    pub priority: Priority,
}

Url entry. Contains url location, modification time, priority, update frequency.

Fields

loc: Location

URL of the page.

lastmod: LastMod

The date of last modification of the file.

changefreq: ChangeFreq

How frequently the page is likely to change.

priority: Priority

The priority of this URL relative to other URLs on the site.

Implementations

impl UrlEntry[src]

pub fn new() -> UrlEntry[src]

Creates a new empty UrlEntry.

pub fn builder() -> UrlEntryBuilder[src]

Creates builder for UrlEntry structure

Trait Implementations

impl Clone for UrlEntry[src]

impl Debug for UrlEntry[src]

impl Into<UrlEntry> for UrlEntryBuilder[src]

fn into(self) -> UrlEntry[src]

Panics when builder is misconfigured.

impl Into<UrlEntry> for Url[src]

fn into(self) -> UrlEntry[src]

Notably does not panic

impl Into<UrlEntry> for String[src]

fn into(self) -> UrlEntry[src]

Panics when url is invalid

impl Into<UrlEntry> for &'static str[src]

fn into(self) -> UrlEntry[src]

Panics when url is invalid

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.