pub type ValidatedBody<B> = Either<Full<Bytes>, B>;Expand description
Body type seen by the inner service (Left: the buffered bytes of a
validated JSON request, Right: the untouched original body of a
non-JSON request) and returned by the layer (Left: a JSON error body,
Right: the inner service’s body).
Aliased Type§
pub enum ValidatedBody<B> {
Left(Full<Bytes>),
Right(B),
}