1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use bytes::Bytes; pub mod ext; pub mod request; pub mod response; pub trait FromParts<P, B = Bytes> { fn from_parts(parts: P, body: B) -> Self; } pub trait IntoParts { type Parts; type Body; fn into_parts(self) -> (Self::Parts, Self::Body); }