pub struct SearchPreview {
pub title: Option<String>,
pub facts: Vec<String>,
pub lines: Vec<String>,
pub body: Option<String>,
}Expand description
What the palette’s preview band shows of a hit: a heading, short facts side by side, items one per line and the start of its text. Data only; the platform lays it out.
Fields§
§title: Option<String>§facts: Vec<String>§lines: Vec<String>§body: Option<String>Implementations§
Source§impl SearchPreview
impl SearchPreview
Trait Implementations§
Source§impl Clone for SearchPreview
impl Clone for SearchPreview
Source§impl Debug for SearchPreview
impl Debug for SearchPreview
Source§impl Default for SearchPreview
impl Default for SearchPreview
impl Eq for SearchPreview
Source§impl PartialEq for SearchPreview
impl PartialEq for SearchPreview
impl StructuralPartialEq for SearchPreview
Auto Trait Implementations§
impl Forget for SearchPreview
impl Freeze for SearchPreview
impl Move for SearchPreview
impl RefUnwindSafe for SearchPreview
impl Send for SearchPreview
impl Sync for SearchPreview
impl Unpin for SearchPreview
impl UnsafeUnpin for SearchPreview
impl UnwindSafe for SearchPreview
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