pub struct SearchOutput {
pub results: Vec<SearchResult>,
pub total_count: usize,
}Expand description
Output for web search operations
Fields§
§results: Vec<SearchResult>Search results
total_count: usizeTotal number of results available (for pagination)
Implementations§
Source§impl SearchOutput
impl SearchOutput
Sourcepub fn new(results: Vec<SearchResult>, total_count: usize) -> Self
pub fn new(results: Vec<SearchResult>, total_count: usize) -> Self
Create a new search output
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 · 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
Source§impl<'de> Deserialize<'de> for SearchOutput
impl<'de> Deserialize<'de> for SearchOutput
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 SearchOutput
impl RefUnwindSafe for SearchOutput
impl Send for SearchOutput
impl Sync for SearchOutput
impl Unpin 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