Struct anyhow_http::response::Json
source · pub struct Json;Expand description
A general purpose error response that formats a HttpError as Json.
Trait Implementations§
source§impl IntoHttpErrorResponse for Json
impl IntoHttpErrorResponse for Json
source§fn into_http_error_response(
http_error: HttpError<Self::Fmt>
) -> HttpErrorResponse<Self::Fmt>
fn into_http_error_response( http_error: HttpError<Self::Fmt> ) -> HttpErrorResponse<Self::Fmt>
Creates an error response.
Auto Trait Implementations§
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
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