Skip to main content

default_search

Function default_search 

pub fn default_search<R>(label: &str, record: &R) -> Vec<SearchEntry>
where R: Resource + Fields,
Expand description

The default search entries of a record: one per item with a #[model(label)], anchored at its item resource, or else all of its text in one entry. A #[resource(search = path)] function extends it by calling it.