pub struct MessageFtsHit {
pub message_id: String,
pub conversation_id: String,
pub role: String,
pub created_at: i64,
pub score: f32,
}Expand description
A full-text hit from the message FTS index: the message_id + metadata + a
bounded relevance score. The snippet/content is intentionally NOT stored here —
the caller re-reads and decrypts it from conversations.db.
Fields§
§message_id: String§conversation_id: String§role: String§created_at: i64§score: f32Relevance score in (0, 1] (higher is more relevant), derived from the
FTS5 bm25() rank.
Trait Implementations§
Source§impl Clone for MessageFtsHit
impl Clone for MessageFtsHit
Source§fn clone(&self) -> MessageFtsHit
fn clone(&self) -> MessageFtsHit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageFtsHit
impl RefUnwindSafe for MessageFtsHit
impl Send for MessageFtsHit
impl Sync for MessageFtsHit
impl Unpin for MessageFtsHit
impl UnsafeUnpin for MessageFtsHit
impl UnwindSafe for MessageFtsHit
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