pub struct ValidationMiddleware { /* private fields */ }Expand description
Validation middleware - validates request structure
Implementations§
Trait Implementations§
Source§impl Middleware for ValidationMiddleware
impl Middleware for ValidationMiddleware
Source§fn before<'life0, 'async_trait>(
&'life0 self,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn before<'life0, 'async_trait>(
&'life0 self,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process request before handler execution
Returns modified request or error
Auto Trait Implementations§
impl Freeze for ValidationMiddleware
impl RefUnwindSafe for ValidationMiddleware
impl Send for ValidationMiddleware
impl Sync for ValidationMiddleware
impl Unpin for ValidationMiddleware
impl UnwindSafe for ValidationMiddleware
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