pub struct VldPath<T>(pub T);Expand description
ntex extractor that validates URL path parameters.
Drop-in replacement for ntex::web::types::Path<T>.
Path segment values are coerced the same way as query parameters.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: VldParse, Err: ErrorRenderer> FromRequest<Err> for VldPath<T>
impl<T: VldParse, Err: ErrorRenderer> FromRequest<Err> for VldPath<T>
Source§type Error = VldNtexError
type Error = VldNtexError
The associated error which can be returned.
Source§async fn from_request(
req: &HttpRequest,
_payload: &mut Payload,
) -> Result<Self, Self::Error>
async fn from_request( req: &HttpRequest, _payload: &mut Payload, ) -> Result<Self, Self::Error>
Convert request to a Self
Auto Trait Implementations§
impl<T> Freeze for VldPath<T>where
T: Freeze,
impl<T> RefUnwindSafe for VldPath<T>where
T: RefUnwindSafe,
impl<T> Send for VldPath<T>where
T: Send,
impl<T> Sync for VldPath<T>where
T: Sync,
impl<T> Unpin for VldPath<T>where
T: Unpin,
impl<T> UnsafeUnpin for VldPath<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VldPath<T>where
T: UnwindSafe,
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