pub struct JsonError<T = Nothing> {
pub status: StatusCode,
pub code: &'static str,
pub hint: Option<String>,
pub content: T,
}
Fields§
§status: StatusCode
§code: &'static str
§hint: Option<String>
§content: T
Implementations§
Trait Implementations§
Source§impl<T> IntoResponse for JsonError<T>where
T: Serialize + 'static,
impl<T> IntoResponse for JsonError<T>where
T: Serialize + 'static,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T> Freeze for JsonError<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonError<T>where
T: RefUnwindSafe,
impl<T> Send for JsonError<T>where
T: Send,
impl<T> Sync for JsonError<T>where
T: Sync,
impl<T> Unpin for JsonError<T>where
T: Unpin,
impl<T> UnwindSafe for JsonError<T>where
T: UnwindSafe,
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