pub struct SessionSearchMatch {
pub session_id: String,
pub entry: i64,
pub kind: String,
pub snippet: String,
pub score: f64,
pub tier: String,
pub title: String,
pub workspace_root: Option<String>,
pub updated_at: String,
}Expand description
One place that matched: the ids a client needs to open it, plus the tier that produced the row so a weaker hit can be told apart from a stronger one.
Fields§
§session_id: StringThe session the row belongs to.
entry: i641-based display entry number, the same numbering session.load and
the transcript window use.
kind: StringWhich piece of the entry matched: user, assistant, notice, divider, command or output.
snippet: StringA window around the match, with the matched words bracketed.
score: f64Relevance, higher is better.
tier: StringThe tier that produced the row: phrase, strict or relaxed.
title: StringThe session’s title, so a row reads on its own.
workspace_root: Option<String>The directory the session ran in, when it had one.
updated_at: StringThe session’s last update, as the record carries it.
Trait Implementations§
Source§impl Clone for SessionSearchMatch
impl Clone for SessionSearchMatch
Source§impl Debug for SessionSearchMatch
impl Debug for SessionSearchMatch
Source§impl<'de> Deserialize<'de> for SessionSearchMatch
impl<'de> Deserialize<'de> for SessionSearchMatch
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
Source§impl PartialEq for SessionSearchMatch
impl PartialEq for SessionSearchMatch
Source§impl Serialize for SessionSearchMatch
impl Serialize for SessionSearchMatch
impl StructuralPartialEq for SessionSearchMatch
Auto Trait Implementations§
impl Forget for SessionSearchMatch
impl Freeze for SessionSearchMatch
impl Move for SessionSearchMatch
impl RefUnwindSafe for SessionSearchMatch
impl Send for SessionSearchMatchwhere
RawVecInner: Send,
impl Sync for SessionSearchMatchwhere
RawVecInner: Sync,
impl Unpin for SessionSearchMatch
impl UnsafeUnpin for SessionSearchMatch
impl UnwindSafe for SessionSearchMatchwhere
RawVecInner: UnwindSafe,
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