macro_rules! search_provider {
(
id: $id:expr,
name: $name:expr,
description: $desc:expr,
$(priority: $priority:expr,)?
$(result_types: [$($result_type:expr),*],)?
$(supports_facets: $facets:expr,)?
$(supports_suggestions: $suggestions:expr,)?
search: $search_fn:expr,
$(suggestions: $suggestions_fn:expr,)?
$(health_check: $health_fn:expr,)?
) => { ... };
(@priority) => { ... };
(@priority $priority:expr) => { ... };
(@supports_facets) => { ... };
(@supports_facets $facets:expr) => { ... };
(@supports_suggestions) => { ... };
(@supports_suggestions $suggestions:expr) => { ... };
}
Expand description
Create a search provider for a plugin with convenient syntax