pub struct VldForm<T>(pub T);Expand description
ntex extractor that validates URL-encoded form bodies
(application/x-www-form-urlencoded).
Drop-in replacement for ntex::web::types::Form<T>.
Values are coerced the same way as query parameters.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: VldParse, Err: ErrorRenderer> FromRequest<Err> for VldForm<T>
impl<T: VldParse, Err: ErrorRenderer> FromRequest<Err> for VldForm<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 VldForm<T>where
T: Freeze,
impl<T> RefUnwindSafe for VldForm<T>where
T: RefUnwindSafe,
impl<T> Send for VldForm<T>where
T: Send,
impl<T> Sync for VldForm<T>where
T: Sync,
impl<T> Unpin for VldForm<T>where
T: Unpin,
impl<T> UnsafeUnpin for VldForm<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VldForm<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