#[non_exhaustive]pub enum UrlEncodedError {
InvalidNumber(String, String),
UnsupportedShape(String),
UnsupportedType(String),
ReflectError(ReflectError),
}Expand description
Errors that can occur during URL encoded form data deserialization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidNumber(String, String)
The field value couldn’t be parsed as a number.
UnsupportedShape(String)
The shape is not supported for deserialization.
UnsupportedType(String)
The type is not supported for deserialization.
ReflectError(ReflectError)
Reflection error
Trait Implementations§
Source§impl Debug for UrlEncodedError
impl Debug for UrlEncodedError
Source§impl Display for UrlEncodedError
impl Display for UrlEncodedError
Source§impl Error for UrlEncodedError
impl Error for UrlEncodedError
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 From<ReflectError> for UrlEncodedError
impl From<ReflectError> for UrlEncodedError
Source§fn from(err: ReflectError) -> Self
fn from(err: ReflectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UrlEncodedError
impl RefUnwindSafe for UrlEncodedError
impl Send for UrlEncodedError
impl Sync for UrlEncodedError
impl Unpin for UrlEncodedError
impl UnwindSafe for UrlEncodedError
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
Source§impl<T> Stylize for T
impl<T> Stylize for T
Source§fn bright_red(self) -> Styled<T>
fn bright_red(self) -> Styled<T>
Apply bright red color style to a value.
Source§fn bright_green(self) -> Styled<T>
fn bright_green(self) -> Styled<T>
Apply bright green color style to a value.
Source§fn bright_blue(self) -> Styled<T>
fn bright_blue(self) -> Styled<T>
Apply bright blue color style to a value.
Source§fn bright_yellow(self) -> Styled<T>
fn bright_yellow(self) -> Styled<T>
Apply bright yellow color style to a value.
Source§fn bright_magenta(self) -> Styled<T>
fn bright_magenta(self) -> Styled<T>
Apply bright magenta color style to a value.
Source§fn bright_cyan(self) -> Styled<T>
fn bright_cyan(self) -> Styled<T>
Apply bright cyan color style to a value.
Source§fn bright_white(self) -> Styled<T>
fn bright_white(self) -> Styled<T>
Apply bright white color style to a value.