pub enum SearchRowShape {
Plain,
Message {
sender: String,
snippet: Option<String>,
date: Option<String>,
unread: bool,
},
Media {
byline: Option<String>,
duration: Option<String>,
},
FileHit {
path: String,
line: Option<u32>,
snippet: String,
},
}Variants§
Plain
Icon, title and subtitle.
Message
A message: who sent it, a snippet, when, and whether it is unread.
Media
A video, track or other media item: who made it and how long it
runs. (A provider with artwork answers its own rows, with
AppImage::from_image_store thumbnails.)
FileHit
A match inside a file: the path, the line and the matched line.
Trait Implementations§
Source§impl Clone for SearchRowShape
impl Clone for SearchRowShape
Source§impl Debug for SearchRowShape
impl Debug for SearchRowShape
Source§impl Default for SearchRowShape
impl Default for SearchRowShape
impl Eq for SearchRowShape
Source§impl PartialEq for SearchRowShape
impl PartialEq for SearchRowShape
impl StructuralPartialEq for SearchRowShape
Auto Trait Implementations§
impl Forget for SearchRowShape
impl Freeze for SearchRowShape
impl Move for SearchRowShape
impl RefUnwindSafe for SearchRowShape
impl Send for SearchRowShape
impl Sync for SearchRowShape
impl Unpin for SearchRowShape
impl UnsafeUnpin for SearchRowShape
impl UnwindSafe for SearchRowShape
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,
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