pub struct SearchResultItem {
pub id: String,
pub score: f64,
pub title: Option<String>,
pub source: String,
pub source_id: String,
pub updated_at: String,
pub snippet: String,
pub source_url: Option<String>,
pub explain: Option<ScoreExplanation>,
}Expand description
A search result matching the SCHEMAS.md context.search response shape.
Fields§
§id: StringDocument UUID.
score: f64Relevance score in [0.0, 1.0].
title: Option<String>Document title.
source: StringConnector name.
source_id: StringIdentifier within the source.
updated_at: StringLast modification timestamp (ISO 8601).
snippet: StringText excerpt from the best-matching chunk.
source_url: Option<String>Web-browsable URL, if available.
explain: Option<ScoreExplanation>Scoring breakdown (populated when explain is true).
Trait Implementations§
Source§impl Clone for SearchResultItem
impl Clone for SearchResultItem
Source§fn clone(&self) -> SearchResultItem
fn clone(&self) -> SearchResultItem
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 SearchResultItem
impl Debug for SearchResultItem
Auto Trait Implementations§
impl Freeze for SearchResultItem
impl RefUnwindSafe for SearchResultItem
impl Send for SearchResultItem
impl Sync for SearchResultItem
impl Unpin for SearchResultItem
impl UnwindSafe for SearchResultItem
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