pub fn validate_request_body<T>(req: &AuthRequest) -> Result<T, AuthResponse>where
T: DeserializeOwned + Validate + 'static,Expand description
Validate a request body, returning a parsed + validated value or an error response.
ยงErrors
Returns an error response if the request body is missing, malformed, or fails validation.