pub enum SitemapValueError {
EmptyUrl,
InvalidUrl,
InvalidPriority(f32),
EmptyLastModified,
}Expand description
Error returned by sitemap primitive constructors.
Variants§
EmptyUrl
The URL was empty after trimming whitespace.
InvalidUrl
The URL did not look like an HTTP or HTTPS URL.
InvalidPriority(f32)
Priority was outside 0.0..=1.0 or not finite.
EmptyLastModified
The last-modified label was empty.
Trait Implementations§
Source§impl Clone for SitemapValueError
impl Clone for SitemapValueError
Source§fn clone(&self) -> SitemapValueError
fn clone(&self) -> SitemapValueError
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 SitemapValueError
impl Debug for SitemapValueError
Source§impl Display for SitemapValueError
impl Display for SitemapValueError
Source§impl Error for SitemapValueError
impl Error for SitemapValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SitemapValueError
impl PartialEq for SitemapValueError
Source§fn eq(&self, other: &SitemapValueError) -> bool
fn eq(&self, other: &SitemapValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SitemapValueError
impl StructuralPartialEq for SitemapValueError
Auto Trait Implementations§
impl Freeze for SitemapValueError
impl RefUnwindSafe for SitemapValueError
impl Send for SitemapValueError
impl Sync for SitemapValueError
impl Unpin for SitemapValueError
impl UnsafeUnpin for SitemapValueError
impl UnwindSafe for SitemapValueError
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