pub struct SearchContinue {
pub query: String,
pub endpoint: Endpoint,
pub language: Language,
pub offset: usize,
}
Expand description
Contains the necessary data for continuing a Search at a given offset. This data can be
extracted from a already existing search with Search::continue_data
§Example
// This will continue the already completed search
let continue_data = search.continue_data()?;
let continued_search = Search::builder()
.query(continue_data.query)
.endpoint(continue_data.endpoint)
.langauge(continue_data.language)
.offset(continue_data.offset)
.search()?;
Fields§
§query: String
Search for page titles or content matching this value
endpoint: Endpoint
API endpoint of the MediaWiki site to perform the search on
language: Language
In what language to perform the search
offset: usize
Offset where the search will continue
Trait Implementations§
Source§impl Clone for SearchContinue
impl Clone for SearchContinue
Source§fn clone(&self) -> SearchContinue
fn clone(&self) -> SearchContinue
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 moreAuto Trait Implementations§
impl Freeze for SearchContinue
impl RefUnwindSafe for SearchContinue
impl Send for SearchContinue
impl Sync for SearchContinue
impl Unpin for SearchContinue
impl UnwindSafe for SearchContinue
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