pub struct HttpError {
pub status: StatusCode,
pub message: Option<String>,
}Fields§
§status: StatusCode§message: Option<String>Implementations§
Source§impl HttpError
impl HttpError
pub fn status(status: StatusCode) -> Self
pub fn message(status: StatusCode, message: impl ToString) -> Self
Trait Implementations§
Source§impl IntoResponse<BoundedBody<Vec<u8>>> for HttpError
impl IntoResponse<BoundedBody<Vec<u8>>> for HttpError
fn into_response(self) -> Response<BoundedBody<Vec<u8>>>
Auto Trait Implementations§
impl Freeze for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl UnwindSafe for HttpError
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