pub struct ValidatedJson<Dto>(pub Dto);Tuple Fields§
§0: DtoTrait Implementations§
Source§impl<Dto> FromRequest for ValidatedJson<Dto>where
Dto: DeserializeOwned + Validate,
impl<Dto> FromRequest for ValidatedJson<Dto>where
Dto: DeserializeOwned + Validate,
Source§type Error = ErrorResponse
type Error = ErrorResponse
The associated error which can be returned.
Source§type Future = Ready<Result<ValidatedJson<Dto>, <ValidatedJson<Dto> as FromRequest>::Error>>
type Future = Ready<Result<ValidatedJson<Dto>, <ValidatedJson<Dto> as FromRequest>::Error>>
Future that resolves to a
Self. Read moreSource§fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl<Dto> Freeze for ValidatedJson<Dto>where
Dto: Freeze,
impl<Dto> RefUnwindSafe for ValidatedJson<Dto>where
Dto: RefUnwindSafe,
impl<Dto> Send for ValidatedJson<Dto>where
Dto: Send,
impl<Dto> Sync for ValidatedJson<Dto>where
Dto: Sync,
impl<Dto> Unpin for ValidatedJson<Dto>where
Dto: Unpin,
impl<Dto> UnwindSafe for ValidatedJson<Dto>where
Dto: 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