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§
Source§impl Debug for SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more