pub enum ListingValueError {
Empty {
field: &'static str,
},
InvalidUrl,
}Expand description
Error returned by listing primitive constructors.
Variants§
Empty
The supplied value was empty after trimming whitespace.
InvalidUrl
A URL did not look like an HTTP or HTTPS URL.
Trait Implementations§
Source§impl Clone for ListingValueError
impl Clone for ListingValueError
Source§fn clone(&self) -> ListingValueError
fn clone(&self) -> ListingValueError
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 ListingValueError
impl Debug for ListingValueError
Source§impl Display for ListingValueError
impl Display for ListingValueError
Source§impl Error for ListingValueError
impl Error for ListingValueError
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 ListingValueError
impl PartialEq for ListingValueError
Source§fn eq(&self, other: &ListingValueError) -> bool
fn eq(&self, other: &ListingValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ListingValueError
impl Eq for ListingValueError
impl StructuralPartialEq for ListingValueError
Auto Trait Implementations§
impl Freeze for ListingValueError
impl RefUnwindSafe for ListingValueError
impl Send for ListingValueError
impl Sync for ListingValueError
impl Unpin for ListingValueError
impl UnsafeUnpin for ListingValueError
impl UnwindSafe for ListingValueError
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