Trait ValidateRequestFn
pub trait ValidateRequestFn<S, B, A>:
Send
+ Sync
+ 'static {
type ResponseBody;
// Required method
fn call(
&self,
ctx: Context<S>,
request: Request<B>,
) -> impl Future<Output = Result<(Context<S>, Request<B>), Response<Self::ResponseBody>>> + Send;
}
Expand description
Trait for validating requests.
Required Associated Types§
type ResponseBody
type ResponseBody
The body type used for responses to unvalidated requests.
Required Methods§
Object Safety§
This trait is not object safe.