type HandlerFn<M> = Box<dyn for<'a> Fn(&'a M, ApiEndpointContext<'a>, ApiRequestErased) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'a>> + Send + Sync>;
struct HandlerFn<M>(/* private fields */);