pub struct ValidationErrors { /* private fields */ }Expand description
Laravel-shaped validation error bag: field name -> messages.
IntoResponse renders it as a 422 with the same JSON shape Laravel’s
default validation exception produces:
{"message": "...", "errors": {"field": ["msg", ...]}}.
Implementations§
Trait Implementations§
Source§impl Debug for ValidationErrors
impl Debug for ValidationErrors
Source§impl Default for ValidationErrors
impl Default for ValidationErrors
Source§impl IntoResponse for ValidationErrors
impl IntoResponse for ValidationErrors
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Forget for ValidationErrors
impl Freeze for ValidationErrors
impl Move for ValidationErrors
impl RefUnwindSafe for ValidationErrors
impl Send for ValidationErrors
impl Sync for ValidationErrors
impl Unpin for ValidationErrors
impl UnsafeUnpin for ValidationErrors
impl UnwindSafe for ValidationErrors
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