pub struct BadRequest { /* private fields */ }Expand description
An HTTP error which represents 400 Bad Request.
Implementations§
Source§impl BadRequest
impl BadRequest
Trait Implementations§
Source§impl Debug for BadRequest
impl Debug for BadRequest
Source§impl Display for BadRequest
impl Display for BadRequest
Source§impl HttpError for BadRequest
impl HttpError for BadRequest
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Return the HTTP status code associated with this error type.
Source§fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
Append a set of header values to the header map.
Auto Trait Implementations§
impl Freeze for BadRequest
impl !RefUnwindSafe for BadRequest
impl Send for BadRequest
impl Sync for BadRequest
impl Unpin for BadRequest
impl !UnwindSafe for BadRequest
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more