pub struct ErrorResponse(pub Error);Tuple Fields§
§0: ErrorTrait Implementations§
Source§impl From<Error> for ErrorResponse
impl From<Error> for ErrorResponse
Source§impl From<ValidationError> for ErrorResponse
impl From<ValidationError> for ErrorResponse
Source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for ErrorResponse
impl IntoResponse for ErrorResponse
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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