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: StringSearch for page titles or content matching this value
endpoint: EndpointAPI endpoint of the MediaWiki site to perform the search on
language: LanguageIn what language to perform the search
offset: usizeOffset 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 moreSource§impl Debug for SearchContinue
impl Debug for SearchContinue
Source§impl<'de> Deserialize<'de> for SearchContinue
impl<'de> Deserialize<'de> for SearchContinue
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 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