pub struct SitemapUrl {
pub loc: String,
pub lastmod: Option<String>,
pub alternates: Vec<(String, String)>,
}Expand description
A page of a Sitemap: its absolute URL, last change and other languages.
Fields§
§loc: StringAbsolute URL (https://example.com/fr/pricing).
lastmod: Option<String>Last change, YYYY-MM-DD or a full W3C date-time; omitted when None.
alternates: Vec<(String, String)>The page in each language, the page itself included: (hreflang, absolute URL),
plus ("x-default", url) for the language-picking version.
Trait Implementations§
Source§impl Clone for SitemapUrl
impl Clone for SitemapUrl
Source§fn clone(&self) -> SitemapUrl
fn clone(&self) -> SitemapUrl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SitemapUrl
impl Debug for SitemapUrl
Source§impl Default for SitemapUrl
impl Default for SitemapUrl
Source§fn default() -> SitemapUrl
fn default() -> SitemapUrl
Returns the “default value” for a type. Read more
impl Eq for SitemapUrl
Source§impl PartialEq for SitemapUrl
impl PartialEq for SitemapUrl
Source§fn eq(&self, other: &SitemapUrl) -> bool
fn eq(&self, other: &SitemapUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SitemapUrl
Auto Trait Implementations§
impl Freeze for SitemapUrl
impl RefUnwindSafe for SitemapUrl
impl Send for SitemapUrl
impl Sync for SitemapUrl
impl Unpin for SitemapUrl
impl UnsafeUnpin for SitemapUrl
impl UnwindSafe for SitemapUrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.