pub struct ValidateHook { /* private fields */ }Expand description
Type-erased runner invoked by route middleware.
Implementations§
Source§impl ValidateHook
impl ValidateHook
pub fn wrap<F>(f: F) -> Self
pub fn body<T: VldParse + Send + Sync + 'static>() -> Self
pub fn query<T: VldParse + Send + Sync + 'static>() -> Self
pub fn params<T: VldParse + Send + Sync + 'static>() -> Self
pub fn all<T: VldParse + Send + Sync + 'static>() -> Self
pub fn form<T: VldParse + Send + Sync + 'static>() -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ValidateHook
impl !UnwindSafe for ValidateHook
impl Freeze for ValidateHook
impl Send for ValidateHook
impl Sync for ValidateHook
impl Unpin for ValidateHook
impl UnsafeUnpin for ValidateHook
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