pub enum ParseQueryError {
NotEnoughPairs(usize),
InvalidKeyValuePair,
}
Expand description
Errors possible while using parse_query_string
.
Variants§
NotEnoughPairs(usize)
You provided more keys than there actually were to parse. Empty string.
InvalidKeyValuePair
Lacks an =
, or nothing after the =
sign in some key value pair.
Trait Implementations§
Source§impl Debug for ParseQueryError
impl Debug for ParseQueryError
Source§impl Display for ParseQueryError
impl Display for ParseQueryError
Source§impl Error for ParseQueryError
impl Error for ParseQueryError
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()
Auto Trait Implementations§
impl Freeze for ParseQueryError
impl RefUnwindSafe for ParseQueryError
impl Send for ParseQueryError
impl Sync for ParseQueryError
impl Unpin for ParseQueryError
impl UnwindSafe for ParseQueryError
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