pub struct BindForm<T: DeserializeOwned>(pub T);
Expand description
Bind form data in Axum, rejects on error.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<S, B, T> FromRequest<S, B> for BindForm<T>
impl<S, B, T> FromRequest<S, B> for BindForm<T>
Source§type Rejection = BindFormRejection
type Rejection = BindFormRejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<T> Freeze for BindForm<T>where
T: Freeze,
impl<T> RefUnwindSafe for BindForm<T>where
T: RefUnwindSafe,
impl<T> Send for BindForm<T>where
T: Send,
impl<T> Sync for BindForm<T>where
T: Sync,
impl<T> Unpin for BindForm<T>where
T: Unpin,
impl<T> UnwindSafe for BindForm<T>where
T: UnwindSafe,
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