pub struct ErrorResponse(pub Error);Tuple Fields§
§0: ErrorTrait Implementations§
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl Display for ErrorResponse
impl Display for ErrorResponse
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 ResponseError for ErrorResponse
impl ResponseError for ErrorResponse
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
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