pub struct ErrorResponse {
pub error: String,
pub code: u16,
}Expand description
Error response
Fields§
§error: String§code: u16Trait Implementations§
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
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