pub enum SeoValueError {
Empty {
field: &'static str,
},
TooLong {
field: &'static str,
max_length: usize,
actual_length: usize,
},
InvalidSlugHint,
}Expand description
Error returned by SEO primitive constructors.
Variants§
Empty
The supplied value was empty after trimming whitespace.
TooLong
The supplied value exceeded the crate’s conservative length hint.
InvalidSlugHint
The supplied slug hint contained unsupported characters.
Trait Implementations§
Source§impl Clone for SeoValueError
impl Clone for SeoValueError
Source§fn clone(&self) -> SeoValueError
fn clone(&self) -> SeoValueError
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 SeoValueError
impl Debug for SeoValueError
Source§impl Display for SeoValueError
impl Display for SeoValueError
Source§impl Error for SeoValueError
impl Error for SeoValueError
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 SeoValueError
impl PartialEq for SeoValueError
Source§fn eq(&self, other: &SeoValueError) -> bool
fn eq(&self, other: &SeoValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SeoValueError
impl Eq for SeoValueError
impl StructuralPartialEq for SeoValueError
Auto Trait Implementations§
impl Freeze for SeoValueError
impl RefUnwindSafe for SeoValueError
impl Send for SeoValueError
impl Sync for SeoValueError
impl Unpin for SeoValueError
impl UnsafeUnpin for SeoValueError
impl UnwindSafe for SeoValueError
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