pub struct SearchResult {
pub session_id: Uuid,
pub message_id: Uuid,
pub role: MessageRole,
pub snippet: String,
pub timestamp: DateTime<Utc>,
pub working_directory: String,
pub tool: String,
pub git_branch: Option<String>,
pub session_message_count: i32,
pub session_started_at: Option<DateTime<Utc>>,
pub message_index: i32,
}Expand description
A search result from full-text search of message content.
Contains the matching message metadata along with a snippet of the matching content for display in search results.
Fields§
§session_id: UuidThe session containing the matching message.
message_id: UuidThe matching message ID.
role: MessageRoleRole of the message sender (user, assistant, system).
snippet: StringSnippet of matching content with search terms highlighted.
timestamp: DateTime<Utc>Timestamp of the matching message.
working_directory: StringWorking directory of the session containing this message.
tool: StringAI tool that captured this session (e.g., “claude-code”, “aider”).
git_branch: Option<String>Git branch name if available.
session_message_count: i32Total message count in the session.
session_started_at: Option<DateTime<Utc>>When the session started.
message_index: i32Index of the matching message within its session.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
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 SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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