pub struct SearchResult {
pub url: String,
pub id: Option<String>,
pub title: Option<String>,
pub score: Option<f64>,
pub published_date: Option<String>,
pub author: Option<String>,
pub text: Option<String>,
pub summary: Option<String>,
pub highlights: Option<Vec<String>>,
pub highlight_scores: Option<Vec<f64>>,
}Expand description
A single search result from the Exa API
Fields§
§url: StringURL of the result
id: Option<String>Unique ID for the result
title: Option<String>Title of the page
score: Option<f64>Relevance score
published_date: Option<String>Date the page was published
Author of the page
text: Option<String>Full text content (if requested)
summary: Option<String>Summary (if requested)
highlights: Option<Vec<String>>Highlights (if requested)
highlight_scores: Option<Vec<f64>>Highlight scores
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 SearchResult
impl Debug for SearchResult
Source§impl Default for SearchResult
impl Default for SearchResult
Source§fn default() -> SearchResult
fn default() -> SearchResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
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
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin 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