pub struct RawBody(pub Bytes);Expand description
The raw request body.
Tuple Fields§
§0: BytesTrait Implementations§
Source§impl FromRequest for RawBody
impl FromRequest for RawBody
Source§fn from_request(request: Arc<Request>) -> BoxedFuture<Result<Self>>
fn from_request(request: Arc<Request>) -> BoxedFuture<Result<Self>>
Build
Self from the request, or fail with the error the client should
see (a 400 for a malformed body, a 422 for a failed contract).Auto Trait Implementations§
impl !Freeze for RawBody
impl RefUnwindSafe for RawBody
impl Send for RawBody
impl Sync for RawBody
impl Unpin for RawBody
impl UnsafeUnpin for RawBody
impl UnwindSafe for RawBody
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