Trait SearchRow
pub trait SearchRow {
// Required methods
fn kind(&self) -> &ResourceKind;
fn score(&self) -> i32;
fn title(&self) -> &str;
fn subtitle(&self) -> Option<&str>;
// Provided methods
fn shortcut(&self) -> Option<&str> { ... }
fn availability(&self) -> Availability { ... }
}Expand description
Portable display metadata; implement on a host row without moving its callbacks.
Required Methods§
fn kind(&self) -> &ResourceKind
fn score(&self) -> i32
fn title(&self) -> &str
fn subtitle(&self) -> Option<&str>
Provided Methods§
fn shortcut(&self) -> Option<&str>
fn availability(&self) -> Availability
fn availability(&self) -> Availability
How far the hit is from the person; see Availability.