pub struct ValidateJsonService<S, T> { /* private fields */ }Expand description
The middleware Service created by
ValidateJsonLayer.
Trait Implementations§
Source§impl<S: Clone, T: Clone> Clone for ValidateJsonService<S, T>
impl<S: Clone, T: Clone> Clone for ValidateJsonService<S, T>
Source§fn clone(&self) -> ValidateJsonService<S, T>
fn clone(&self) -> ValidateJsonService<S, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, T, ReqBody, ResBody> Service<Request<ReqBody>> for ValidateJsonService<S, T>where
S: Service<Request<Full<Bytes>>, Response = Response<ResBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync>>,
ReqBody: Body + Send + 'static,
ReqBody::Data: Send,
ReqBody::Error: Into<Box<dyn Error + Send + Sync>>,
ResBody: From<Full<Bytes>> + Send + 'static,
T: VldParse + Clone + Send + Sync + 'static,
impl<S, T, ReqBody, ResBody> Service<Request<ReqBody>> for ValidateJsonService<S, T>where
S: Service<Request<Full<Bytes>>, Response = Response<ResBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync>>,
ReqBody: Body + Send + 'static,
ReqBody::Data: Send,
ReqBody::Error: Into<Box<dyn Error + Send + Sync>>,
ResBody: From<Full<Bytes>> + Send + 'static,
T: VldParse + Clone + Send + Sync + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Result<<ValidateJsonService<S, T> as Service<Request<ReqBody>>>::Response, <ValidateJsonService<S, T> as Service<Request<ReqBody>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ValidateJsonService<S, T> as Service<Request<ReqBody>>>::Response, <ValidateJsonService<S, T> as Service<Request<ReqBody>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S, T> Freeze for ValidateJsonService<S, T>where
S: Freeze,
impl<S, T> RefUnwindSafe for ValidateJsonService<S, T>where
S: RefUnwindSafe,
impl<S, T> Send for ValidateJsonService<S, T>where
S: Send,
impl<S, T> Sync for ValidateJsonService<S, T>where
S: Sync,
impl<S, T> Unpin for ValidateJsonService<S, T>where
S: Unpin,
impl<S, T> UnwindSafe for ValidateJsonService<S, T>where
S: 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