Struct RawForm
pub struct RawForm(pub Bytes);
Extractor that extracts raw form requests.
For GET requests it will extract the raw query. For other methods it extracts the raw
application/x-www-form-urlencoded encoded request body.
Example
use ;
async
let app = new.route;
# let _: Router = app;
Fields
0: Bytes
Trait Implementations
impl Debug for RawForm
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S> FromRequest<S> for RawForm
where
S: Send + Sync,
type Rejection = RawFormRejection;async fn from_request(req: Request, state: &S) -> Result<Self, Self::Rejection>
Auto Trait Implementations
impl !Freeze for RawForm
impl RefUnwindSafe for RawForm
impl Send for RawForm
impl Sync for RawForm
impl Unpin for RawForm
impl UnsafeUnpin for RawForm
impl UnwindSafe for RawForm
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RawForm
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RawForm
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for RawForm
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RawForm
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RawForm
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RawForm
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for RawForm
impl<T> Read<Exclusive, BecauseExclusive> for RawForm
where
T: ?Sized,
impl<T> Same for RawForm
type Output = T;
impl<T> WithSubscriber for RawForm
impl<T, U> Into<U> for RawForm
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RawForm
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RawForm
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for RawForm
where
V: MultiLane<T>,
fn vzip(self) -> V