pub struct SearchHit {
pub id: SessionId,
pub project: String,
pub title: String,
pub updated_at: DateTime<Utc>,
pub turns: u32,
pub snippet: String,
}Expand description
Lightweight summary of a search hit — just enough to render a row in
the /find results list without paying to JSON-decode every message
body (Phase L).
Fields§
§id: SessionIdStable session id.
project: StringProject slug (typically the cwd directory name).
title: StringSession title — derived from the first user message.
updated_at: DateTime<Utc>Last update timestamp.
turns: u32Number of completed turns.
snippet: StringA short excerpt around the matched query.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SearchHit
impl<'de> Deserialize<'de> for SearchHit
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 SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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