pub struct SearchResultWithContext {
pub session_id: Uuid,
pub tool: String,
pub project: String,
pub working_directory: String,
pub git_branch: Option<String>,
pub session_started_at: DateTime<Utc>,
pub session_message_count: i32,
pub matches: Vec<MatchWithContext>,
}Expand description
A search result with surrounding context messages.
Groups matches by session and includes neighboring messages for context.
Fields§
§session_id: UuidThe session containing the matches.
tool: StringAI tool that captured this session.
project: StringProject name (extracted from working directory).
working_directory: StringFull working directory path.
git_branch: Option<String>Git branch if available.
session_started_at: DateTime<Utc>When the session started.
session_message_count: i32Total messages in the session.
matches: Vec<MatchWithContext>The matching messages with their context.
Trait Implementations§
Source§impl Clone for SearchResultWithContext
impl Clone for SearchResultWithContext
Source§fn clone(&self) -> SearchResultWithContext
fn clone(&self) -> SearchResultWithContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchResultWithContext
impl Debug for SearchResultWithContext
Source§impl<'de> Deserialize<'de> for SearchResultWithContext
impl<'de> Deserialize<'de> for SearchResultWithContext
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 SearchResultWithContext
impl RefUnwindSafe for SearchResultWithContext
impl Send for SearchResultWithContext
impl Sync for SearchResultWithContext
impl Unpin for SearchResultWithContext
impl UnwindSafe for SearchResultWithContext
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