pub struct SearchResponse {
pub(crate) query: String,
pub(crate) results: Vec<SearchResult>,
pub(crate) total_count: usize,
pub(crate) took_ms: u64,
}
Expand description
Response structure for search operations.
Contains search results along with metadata about the search operation.
Fields§
§query: String
The original search query
results: Vec<SearchResult>
Array of search results
total_count: usize
Total number of results found
took_ms: u64
Time taken to process the search in milliseconds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchResponse
impl RefUnwindSafe for SearchResponse
impl Send for SearchResponse
impl Sync for SearchResponse
impl Unpin for SearchResponse
impl UnwindSafe for SearchResponse
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