pub struct Valid<T>(pub T);Expand description
A request body that deserialized into T and passed T’s Validate
check. Destructure it as Valid(value) in a handler.
Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Valid<T>
Source§impl<T, S> FromRequest<S> for Valid<T>
impl<T, S> FromRequest<S> for Valid<T>
Auto Trait Implementations§
impl<T> Forget for Valid<T>
impl<T> Freeze for Valid<T>where
T: Freeze,
impl<T> Move for Valid<T>
impl<T> RefUnwindSafe for Valid<T>where
T: RefUnwindSafe,
impl<T> Send for Valid<T>where
T: Send,
impl<T> Sync for Valid<T>where
T: Sync,
impl<T> Unpin for Valid<T>where
T: Unpin,
impl<T> UnsafeUnpin for Valid<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Valid<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