pub fn create_api_query_hook<TResult: 'static>(
config: ApiQueryHookConfig<TResult>,
) -> Box<dyn Fn(ReplHookContext) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>Expand description
Create an API query hook from the given configuration. Returns an async function that executes the hook when called.