Struct lexa_framework::extract::Form
source · pub struct Form<F>(pub F);
Tuple Fields§
§0: F
Trait Implementations§
source§impl<F, S, B> FromRequest<S, B, ViaRequest> for Form<F>where
F: DeserializeOwned,
S: Send + Sync,
B: HttpBody + Send + 'static,
B::Data: Send,
B::Error: Into<BoxError>,
impl<F, S, B> FromRequest<S, B, ViaRequest> for Form<F>where F: DeserializeOwned, S: Send + Sync, B: HttpBody + Send + 'static, B::Data: Send, B::Error: Into<BoxError>,
§type Rejection = MissingFormError
type Rejection = MissingFormError
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<F> RefUnwindSafe for Form<F>where F: RefUnwindSafe,
impl<F> Send for Form<F>where F: Send,
impl<F> Sync for Form<F>where F: Sync,
impl<F> Unpin for Form<F>where F: Unpin,
impl<F> UnwindSafe for Form<F>where F: 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