pub struct SearchResults {
pub matches: Vec<SearchMatch>,
pub truncated: bool,
}Expand description
Results from a search query.
Fields§
§matches: Vec<SearchMatch>Matching lines.
truncated: boolWhether results were truncated due to max_results.
Trait Implementations§
Source§impl Clone for SearchResults
impl Clone for SearchResults
Source§fn clone(&self) -> SearchResults
fn clone(&self) -> SearchResults
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 SearchResults
impl Debug for SearchResults
Source§impl Default for SearchResults
impl Default for SearchResults
Source§fn default() -> SearchResults
fn default() -> SearchResults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchResults
impl RefUnwindSafe for SearchResults
impl Send for SearchResults
impl Sync for SearchResults
impl Unpin for SearchResults
impl UnsafeUnpin for SearchResults
impl UnwindSafe for SearchResults
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