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>
§change_frequency: Option<Frequency>
The frequency of change in this resource.
<changefreq>
priority: Option<f32>
The priority of this page compared to other pages.
<priority>
Ranges from 0.0
to 1.0
Trait Implementations§
impl<'a> Copy for UrlEntry<'a>
impl<'a> StructuralPartialEq for UrlEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for UrlEntry<'a>
impl<'a> RefUnwindSafe for UrlEntry<'a>
impl<'a> Send for UrlEntry<'a>
impl<'a> Sync for UrlEntry<'a>
impl<'a> Unpin for UrlEntry<'a>
impl<'a> UnwindSafe for UrlEntry<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)