pub struct ResultItem {Show 23 fields
pub index: usize,
pub hit: SearchHit,
pub row_height: u16,
pub even: bool,
pub max_width: u16,
pub queued: bool,
pub stripe_style: Style,
pub selected_style: Style,
pub agent_accent_style: Style,
pub score_style: Style,
pub text_primary_style: Style,
pub text_muted_style: Style,
pub text_subtle_style: Style,
pub success_style: Style,
pub source_local_style: Style,
pub source_remote_style: Style,
pub location_style: Style,
pub mini_analytics: Option<RowMiniAnalytics>,
pub reveal_progress: f32,
pub focus_flash_intensity: f32,
pub query_terms: Vec<String>,
pub query_highlight_style: Style,
pub hovered: bool,
}Expand description
A search result item prepared for rendering in a VirtualizedList.
Carries all context needed by RenderItem::render() so the item can
self-render without access to the parent CassApp.
Fields§
§index: usize1-based display index.
hit: SearchHitThe underlying search hit.
row_height: u16Row height (from density mode: 2=compact, 4=cozy, 6=spacious).
even: boolWhether this is an even-indexed row (for alternating stripes).
max_width: u16Maximum content width available.
queued: boolWhether the item is queued for multi-open (Ctrl+Enter).
stripe_style: StyleStripe background style for this row (even/odd).
selected_style: StyleSelected row highlight style (selection_fg/bg).
agent_accent_style: StyleAgent accent fg + bold (per-agent color from theme).
score_style: StyleScore magnitude style (high/mid/low).
text_primary_style: StylePrimary text style.
text_muted_style: StyleMuted text style (metadata, location).
text_subtle_style: StyleSubtle text style (snippets).
success_style: StyleSuccess style (for queue checkmark).
source_local_style: StyleSource badge style for local sources (muted).
source_remote_style: StyleSource badge style for remote sources (info + italic).
location_style: StyleFile location path style (subtle).
mini_analytics: Option<RowMiniAnalytics>Inline mini-analytics for this hit’s conversation/session.
reveal_progress: f32Per-row reveal progress (0.0 = hidden / 1.0 = fully visible).
focus_flash_intensity: f32Focus-flash intensity injected from app animation state (0.0-1.0).
query_terms: Vec<String>Query terms for highlighting matches in title/snippet.
query_highlight_style: StyleStyle for highlighted query terms.
hovered: boolWhether this row is currently under the mouse cursor.
Trait Implementations§
Source§impl Clone for ResultItem
impl Clone for ResultItem
Source§fn clone(&self) -> ResultItem
fn clone(&self) -> ResultItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResultItem
impl Debug for ResultItem
Auto Trait Implementations§
impl Freeze for ResultItem
impl RefUnwindSafe for ResultItem
impl Send for ResultItem
impl Sync for ResultItem
impl Unpin for ResultItem
impl UnsafeUnpin for ResultItem
impl UnwindSafe for ResultItem
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> 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>
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>
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