pub struct SearchResult {
pub id: String,
pub content: String,
pub meta: Option<SessionMeta>,
pub similarity: Option<f64>,
}Expand description
Result from a store search operation.
Contains the stored content along with its identifier and optional metadata.
Fields§
§id: StringUnique identifier for this entry.
content: StringThe stored content (command output).
meta: Option<SessionMeta>Optional metadata about this entry’s origin.
similarity: Option<f64>Optional similarity score (for semantic search backends).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin 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