pub struct SearchResultWire {
pub id: String,
pub name: String,
pub description: Option<String>,
pub icon: Option<String>,
pub exec: String,
pub is_custom_action: bool,
pub score: u32,
pub matched_indices: Vec<u32>,
}Expand description
Compact wire representation of a ranked search result for IPC transport.
Fields§
§id: StringUnique identifier of the entry (e.g. firefox.desktop or action:poweroff).
name: StringDisplay title.
description: Option<String>Secondary subtitle / generic name / comment.
icon: Option<String>Icon name or file path.
exec: StringExecutable command or action summary string.
is_custom_action: boolWhether this entry is a custom action rather than a standard application.
score: u32Blended fuzzy + frecency score.
matched_indices: Vec<u32>Matched character indices for UI highlighting.
Trait Implementations§
Source§impl Clone for SearchResultWire
impl Clone for SearchResultWire
Source§impl Debug for SearchResultWire
impl Debug for SearchResultWire
Source§impl<'de> Deserialize<'de> for SearchResultWire
impl<'de> Deserialize<'de> for SearchResultWire
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
impl Eq for SearchResultWire
Source§impl From<SearchResult> for SearchResultWire
impl From<SearchResult> for SearchResultWire
Source§fn from(res: SearchResult) -> Self
fn from(res: SearchResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SearchResultWire
impl PartialEq for SearchResultWire
Source§impl Serialize for SearchResultWire
impl Serialize for SearchResultWire
impl StructuralPartialEq for SearchResultWire
Auto Trait Implementations§
impl Forget for SearchResultWire
impl Freeze for SearchResultWire
impl Move for SearchResultWire
impl RefUnwindSafe for SearchResultWire
impl Send for SearchResultWirewhere
RawVecInner: Send,
impl Sync for SearchResultWirewhere
RawVecInner: Sync,
impl Unpin for SearchResultWire
impl UnsafeUnpin for SearchResultWire
impl UnwindSafe for SearchResultWirewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more