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, found by its text. Items of a record holding several collections are listed
under each collection’s title (its doc comment’s first line: “Folders”,
“Articles”), so the kinds read apart. An item is found by all of its
text, which is no preview of it: the palette shows none for it. A
#[resource(search = path)] function extends it by calling it.