pub struct ErrorResponse { /* private fields */ }Implementations§
Source§impl ErrorResponse
impl ErrorResponse
pub fn from_status(status: StatusCode) -> Self
Trait Implementations§
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl<E> From<E> for ErrorResponse
impl<E> From<E> for ErrorResponse
Source§impl<E> From<ErrorObject<E>> for ErrorResponsewhere
E: Serialize,
impl<E> From<ErrorObject<E>> for ErrorResponsewhere
E: Serialize,
Source§fn from(value: ErrorObject<E>) -> Self
fn from(value: ErrorObject<E>) -> 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 !RefUnwindSafe for ErrorResponse
impl !Sync for ErrorResponse
impl !UnwindSafe for ErrorResponse
impl Freeze for ErrorResponse
impl Send for ErrorResponse
impl Unpin for ErrorResponse
impl UnsafeUnpin 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