pub enum FormExtractErrorKind {
WrongContentType {
actual: Option<String>,
},
ReadError(String),
PayloadTooLarge {
size: usize,
limit: usize,
},
DeserializeError(String),
}Expand description
The specific kind of form extraction error.
Variants§
WrongContentType
Wrong content type.
ReadError(String)
Failed to read body.
PayloadTooLarge
Body exceeds configured limit.
DeserializeError(String)
Failed to deserialize.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormExtractErrorKind
impl RefUnwindSafe for FormExtractErrorKind
impl Send for FormExtractErrorKind
impl Sync for FormExtractErrorKind
impl Unpin for FormExtractErrorKind
impl UnwindSafe for FormExtractErrorKind
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).