pub struct Search {
pub results: Vec<SearchResult>,
pub endpoint: Endpoint,
pub continue_offset: Option<usize>,
pub info: SearchInfo,
}
Expand description
A finished search containing the found results and additional optional information regarding the search
Fields§
§results: Vec<SearchResult>
The found results in this batch
endpoint: Endpoint
API endpoint of the MediaWiki site where the search was performed on
continue_offset: Option<usize>
If more results are available, use this offset to continue the search
info: SearchInfo
General information about the search
Implementations§
Source§impl Search
impl Search
Sourcepub fn builder() -> SearchBuilder<NoQuery, NoEndpoint, NoLanguage>
pub fn builder() -> SearchBuilder<NoQuery, NoEndpoint, NoLanguage>
Creates a SearchBuilder
to configure and perform a search
Sourcepub fn continue_data(&self) -> Option<SearchContinue>
pub fn continue_data(&self) -> Option<SearchContinue>
If available, returns the the data necessary for continuing the current search
When are more results available for the search, which can be checked via the
Search::complete
field, creates a SearchContinue
data
struct that contains all of the necessary information to continue the search at the
correct offset.
Trait Implementations§
impl Eq for Search
impl StructuralPartialEq for Search
Auto Trait Implementations§
impl Freeze for Search
impl RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl UnwindSafe for Search
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.