pub struct FormExtractError {
pub kind: FormExtractErrorKind,
}Expand description
Error when form extraction fails.
Fields§
§kind: FormExtractErrorKindThe kind of error.
Implementations§
Source§impl FormExtractError
impl FormExtractError
Sourcepub fn wrong_content_type(actual: Option<String>) -> Self
pub fn wrong_content_type(actual: Option<String>) -> Self
Create a wrong content type error.
Sourcepub fn read_error(msg: impl Into<String>) -> Self
pub fn read_error(msg: impl Into<String>) -> Self
Create a read error.
Sourcepub fn payload_too_large(size: usize, limit: usize) -> Self
pub fn payload_too_large(size: usize, limit: usize) -> Self
Create a payload-too-large error.
Sourcepub fn deserialize_error(msg: impl Into<String>) -> Self
pub fn deserialize_error(msg: impl Into<String>) -> Self
Create a deserialization error.
Trait Implementations§
Source§impl Debug for FormExtractError
impl Debug for FormExtractError
Source§impl Display for FormExtractError
impl Display for FormExtractError
Source§impl IntoResponse for FormExtractError
impl IntoResponse for FormExtractError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert into a response.
Auto Trait Implementations§
impl Freeze for FormExtractError
impl RefUnwindSafe for FormExtractError
impl Send for FormExtractError
impl Sync for FormExtractError
impl Unpin for FormExtractError
impl UnsafeUnpin for FormExtractError
impl UnwindSafe for FormExtractError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).