Struct pop_launcher::SearchResult[][src]

pub struct SearchResult {
    pub id: Indice,
    pub name: String,
    pub description: String,
    pub icon: Option<IconSource>,
    pub category_icon: Option<IconSource>,
    pub window: Option<(Generation, Indice)>,
}
Expand description

Serialized response to launcher frontend about a search result.

Fields

id: Indice

Numeric identifier tracked by the plugin.

name: String

The name / title.

description: String

The description / subtitle.

icon: Option<IconSource>

Icon to display in the frontend for this item

category_icon: Option<IconSource>

Icon to display in the frontend for this plugin

window: Option<(Generation, Indice)>

Designates that this search item refers to a window.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.