pub enum ValidExtractError<E> {
Extract(E),
Validation(Box<ValidationErrors>),
}Expand description
Error returned when validated extraction fails.
Variants§
Trait Implementations§
Source§impl<E: Debug> Debug for ValidExtractError<E>
impl<E: Debug> Debug for ValidExtractError<E>
Source§impl<E: Display> Display for ValidExtractError<E>
impl<E: Display> Display for ValidExtractError<E>
Source§impl<E: Error + 'static> Error for ValidExtractError<E>
impl<E: Error + 'static> Error for ValidExtractError<E>
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<E: IntoResponse> IntoResponse for ValidExtractError<E>
impl<E: IntoResponse> IntoResponse for ValidExtractError<E>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert into a response.
Auto Trait Implementations§
impl<E> Freeze for ValidExtractError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ValidExtractError<E>where
E: RefUnwindSafe,
impl<E> Send for ValidExtractError<E>where
E: Send,
impl<E> Sync for ValidExtractError<E>where
E: Sync,
impl<E> Unpin for ValidExtractError<E>where
E: Unpin,
impl<E> UnwindSafe for ValidExtractError<E>where
E: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).