pub struct Form<T, const LIMIT: usize = DEFAULT_LIMIT>(pub T);Expand description
Extract type for form object. const generic param LIMIT is for max size of the object in bytes. Object larger than limit would be treated as error.
Default limit is DEFAULT_LIMIT in bytes.
Tuple Fields§
§0: TTrait Implementations§
source§impl<'a, 'r, C, B, T, const LIMIT: usize> FromRequest<'a, WebContext<'r, C, B>> for Form<T, LIMIT>
impl<'a, 'r, C, B, T, const LIMIT: usize> FromRequest<'a, WebContext<'r, C, B>> for Form<T, LIMIT>
Auto Trait Implementations§
impl<T, const LIMIT: usize> RefUnwindSafe for Form<T, LIMIT>where
T: RefUnwindSafe,
impl<T, const LIMIT: usize> Send for Form<T, LIMIT>where
T: Send,
impl<T, const LIMIT: usize> Sync for Form<T, LIMIT>where
T: Sync,
impl<T, const LIMIT: usize> Unpin for Form<T, LIMIT>where
T: Unpin,
impl<T, const LIMIT: usize> UnwindSafe for Form<T, LIMIT>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