pub struct SearchResult {
pub id: String,
pub title: String,
pub url: String,
pub snippet: String,
pub score: f64,
pub indexed_at: DateTime<Utc>,
}
Expand description
Individual search result item.
Represents a single document found in the search index.
Fields§
§id: String
Unique identifier for the document
title: String
Title of the document/page
url: String
Original URL of the document
snippet: String
Relevant excerpt from the document content
score: f64
Search relevance score (0.0 to 1.0)
indexed_at: DateTime<Utc>
Timestamp when the document was indexed
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin 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