pub enum PathParamsRejection {
LengthMismatch,
ParseError(BoxError),
}Available on crate feature
server only.Expand description
PathParams specified rejections
Variants§
LengthMismatch
The number of params does not match the number of idents in PathParams
ParseError(BoxError)
Error when parsing a string to the specified type
Trait Implementations§
Source§impl Debug for PathParamsRejection
impl Debug for PathParamsRejection
Source§impl Display for PathParamsRejection
impl Display for PathParamsRejection
Source§impl Error for PathParamsRejection
impl Error for PathParamsRejection
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 PathParamsRejection
impl IntoResponse for PathParamsRejection
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Consume self and convert it into a
ResponseAuto Trait Implementations§
impl Freeze for PathParamsRejection
impl !RefUnwindSafe for PathParamsRejection
impl Send for PathParamsRejection
impl Sync for PathParamsRejection
impl Unpin for PathParamsRejection
impl !UnwindSafe for PathParamsRejection
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