pub enum ExtractionError {
MissingPathParam(String),
InvalidPathParam(String),
InvalidQuery(String),
InvalidJson(String),
MissingHeader(String),
InvalidHeader(String),
MissingState(String),
InvalidForm(String),
InvalidCookie(String),
ContentTooLarge(String),
UnsupportedMediaType(String),
Custom(String),
}Expand description
Error type for extraction failures
Variants§
MissingPathParam(String)
Missing path parameter
InvalidPathParam(String)
Invalid path parameter format
InvalidQuery(String)
Invalid query parameter format
InvalidJson(String)
Invalid JSON body
MissingHeader(String)
Missing required header
InvalidHeader(String)
Invalid header value
MissingState(String)
Missing application state
InvalidForm(String)
Invalid form data
InvalidCookie(String)
Invalid cookie
ContentTooLarge(String)
Content too large
UnsupportedMediaType(String)
Unsupported media type
Custom(String)
Custom error
Trait Implementations§
Source§impl Debug for ExtractionError
impl Debug for ExtractionError
Source§impl Display for ExtractionError
impl Display for ExtractionError
Source§impl Error for ExtractionError
impl Error for ExtractionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl IntoResponse for ExtractionError
impl IntoResponse for ExtractionError
fn into_response(self) -> Response
impl Send for ExtractionError
impl Sync for ExtractionError
Auto Trait Implementations§
impl Freeze for ExtractionError
impl RefUnwindSafe for ExtractionError
impl Unpin for ExtractionError
impl UnwindSafe for ExtractionError
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