pub struct RawBody(pub Bytes);Expand description
The request body as EXACT bytes — the extractor for webhook signature
verification, where the digest must cover the wire bytes, not a re-serialized
value. Works on buffered routes (cheap clone) and stream_body() routes
(drains and caches). See the auth docs for the Stripe/Twilio recipes.
Tuple Fields§
§0: BytesTrait Implementations§
Source§impl FromRequest for RawBody
impl FromRequest for RawBody
async fn from_request(ctx: &mut RequestCtx) -> Result<Self>
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