pub struct SearchOutput {
pub query: String,
pub results: Vec<SearchResult>,
pub answer: Option<String>,
pub provider: &'static str,
}Expand description
Unified output of a hosted search call.
Fields§
§query: StringThe query that was executed.
results: Vec<SearchResult>Ranked, URL-deduped hits.
answer: Option<String>Synthesized answer, for backends/requests that produce one (Tavily).
provider: &'static strBackend label.
Trait Implementations§
Source§impl Clone for SearchOutput
impl Clone for SearchOutput
Source§fn clone(&self) -> SearchOutput
fn clone(&self) -> SearchOutput
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 moreSource§impl Debug for SearchOutput
impl Debug for SearchOutput
Auto Trait Implementations§
impl Freeze for SearchOutput
impl RefUnwindSafe for SearchOutput
impl Send for SearchOutput
impl Sync for SearchOutput
impl Unpin for SearchOutput
impl UnsafeUnpin for SearchOutput
impl UnwindSafe for SearchOutput
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