Skip to main content

SearchRow

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 method
    fn shortcut(&self) -> Option<&str> { ... }
}
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>

Implementors§