pub enum ValidationPipeError {
Validation(Report),
}Expand description
Errors emitted by validation pipes.
Variants§
Implementations§
Source§impl ValidationPipeError
impl ValidationPipeError
Sourcepub fn status_code(&self) -> StatusCode
pub fn status_code(&self) -> StatusCode
Returns the HTTP status code corresponding to this validation failure.
Sourcepub fn field_errors(&self) -> Vec<FieldValidationError>
pub fn field_errors(&self) -> Vec<FieldValidationError>
Returns field-level validation errors in deterministic order.
Trait Implementations§
Source§impl Debug for ValidationPipeError
impl Debug for ValidationPipeError
Source§impl Display for ValidationPipeError
impl Display for ValidationPipeError
Source§impl Error for ValidationPipeError
impl Error for ValidationPipeError
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<Report> for ValidationPipeError
impl From<Report> for ValidationPipeError
Source§impl From<ValidationPipeError> for ValidatedJsonRejection
impl From<ValidationPipeError> for ValidatedJsonRejection
Source§fn from(source: ValidationPipeError) -> Self
fn from(source: ValidationPipeError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for ValidationPipeError
impl IntoResponse for ValidationPipeError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ValidationPipeError
impl RefUnwindSafe for ValidationPipeError
impl Send for ValidationPipeError
impl Sync for ValidationPipeError
impl Unpin for ValidationPipeError
impl UnsafeUnpin for ValidationPipeError
impl UnwindSafe for ValidationPipeError
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more