pub struct MessageHit {
pub message_id: String,
pub conversation_id: String,
pub role: String,
pub created_at: i64,
pub distance: f32,
}Expand description
A KNN hit from the message index: the message_id + its (squared L2) distance.
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§distance: f32Squared L2 distance from the query vector (smaller = closer).
Trait Implementations§
Source§impl Clone for MessageHit
impl Clone for MessageHit
Source§fn clone(&self) -> MessageHit
fn clone(&self) -> MessageHit
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 MessageHit
impl RefUnwindSafe for MessageHit
impl Send for MessageHit
impl Sync for MessageHit
impl Unpin for MessageHit
impl UnsafeUnpin for MessageHit
impl UnwindSafe for MessageHit
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