Struct RawForm

struct RawForm(2305)

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 axum::{
    extract::RawForm,
    routing::get,
    Router
};

async fn handler(RawForm(form): RawForm) {}

let app = Router::new().route("/", get(handler));
# let _: Router = app;

Implementations

impl Debug for RawForm

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

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

impl<S> FromRequest for RawForm

async fn from_request(req: Request, state: &S) -> Result<Self, <Self as >::Rejection>

impl<T> Any for RawForm

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RawForm

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for RawForm

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for RawForm

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for RawForm

impl<T> Same for RawForm

impl<T> WithSubscriber for RawForm

impl<T, U> Into for RawForm

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for RawForm

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for RawForm

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for RawForm

fn vzip(self: Self) -> V