pub struct ParamError {
pub param_name: String,
}Expand description
Error type for missing route parameters
This type is kept for backward compatibility. New code should use
FrameworkError::param() instead.
Fields§
§param_name: StringTrait Implementations§
Source§impl Debug for ParamError
impl Debug for ParamError
Source§impl From<ParamError> for FrameworkError
impl From<ParamError> for FrameworkError
Source§fn from(err: ParamError) -> FrameworkError
fn from(err: ParamError) -> FrameworkError
Converts to this type from the input type.
Source§impl From<ParamError> for HttpResponse
impl From<ParamError> for HttpResponse
Source§fn from(err: ParamError) -> HttpResponse
fn from(err: ParamError) -> HttpResponse
Converts to this type from the input type.
Source§impl From<ParamError> for Response
impl From<ParamError> for Response
Source§fn from(err: ParamError) -> Response
fn from(err: ParamError) -> Response
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParamError
impl RefUnwindSafe for ParamError
impl Send for ParamError
impl Sync for ParamError
impl Unpin for ParamError
impl UnsafeUnpin for ParamError
impl UnwindSafe for ParamError
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more