pub enum UtmValueError {
Empty {
field: &'static str,
},
Invalid {
field: &'static str,
},
MissingField(&'static str),
InvalidUrl,
}Expand description
Error returned by UTM primitive constructors and parsers.
Variants§
Empty
The supplied value was empty after trimming whitespace.
Invalid
The supplied value contained unsupported characters.
MissingField(&'static str)
A required UTM field was missing.
InvalidUrl
The base URL was empty or unsupported.
Trait Implementations§
Source§impl Clone for UtmValueError
impl Clone for UtmValueError
Source§fn clone(&self) -> UtmValueError
fn clone(&self) -> UtmValueError
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 UtmValueError
impl Debug for UtmValueError
Source§impl Display for UtmValueError
impl Display for UtmValueError
Source§impl Error for UtmValueError
impl Error for UtmValueError
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 UtmValueError
impl PartialEq for UtmValueError
Source§fn eq(&self, other: &UtmValueError) -> bool
fn eq(&self, other: &UtmValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UtmValueError
impl Eq for UtmValueError
impl StructuralPartialEq for UtmValueError
Auto Trait Implementations§
impl Freeze for UtmValueError
impl RefUnwindSafe for UtmValueError
impl Send for UtmValueError
impl Sync for UtmValueError
impl Unpin for UtmValueError
impl UnsafeUnpin for UtmValueError
impl UnwindSafe for UtmValueError
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