pub enum FormRejection {
Body(Error),
Deserialize(UrlEncodedError),
MissingContentType,
InvalidContentType,
}Variants§
Body(Error)
Failed to read the request body.
Deserialize(UrlEncodedError)
Failed to deserialize the form data.
MissingContentType
Missing Content-Type: x-www-form-urlencoded header.
InvalidContentType
Invalid Content-Type header (not x-www-form-urlencoded).
Trait Implementations§
Source§impl Debug for FormRejection
impl Debug for FormRejection
Source§impl Display for FormRejection
impl Display for FormRejection
Source§impl ResponseError for FormRejection
impl ResponseError for FormRejection
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Auto Trait Implementations§
impl Freeze for FormRejection
impl !RefUnwindSafe for FormRejection
impl !Send for FormRejection
impl !Sync for FormRejection
impl Unpin for FormRejection
impl UnsafeUnpin for FormRejection
impl !UnwindSafe for FormRejection
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