pub struct SearchRequestParams {Show 14 fields
pub base: RequestParams,
pub search: String,
pub search_limit: Option<u32>,
pub fetch_page_content: Option<bool>,
pub location: Option<String>,
pub country: Option<CountryCode>,
pub language: Option<String>,
pub num: Option<u32>,
pub tbs: Option<TBS>,
pub page: Option<u32>,
pub website_limit: Option<u32>,
pub quick_search: Option<bool>,
pub auto_pagination: Option<bool>,
pub engine: Option<Engine>,
}Expand description
The structure representing request parameters for a search request.
Fields§
§base: RequestParamsThe base request parameters.
search: String§search_limit: Option<u32>The search limit.
fetch_page_content: Option<bool>§location: Option<String>The search location of the request
country: Option<CountryCode>The country code of the request
language: Option<String>The language code of the request.
num: Option<u32>The number of search results
tbs: Option<TBS>The time period range.
page: Option<u32>The page of the search results.
website_limit: Option<u32>The websites limit if a list is sent from text or urls comma split. This helps automatic configuration of the system.
quick_search: Option<bool>Prioritize speed over output quantity.
auto_pagination: Option<bool>Auto paginate pages ( up to 100 pages ).
engine: Option<Engine>The search engine to use.
Trait Implementations§
Source§impl Clone for SearchRequestParams
impl Clone for SearchRequestParams
Source§fn clone(&self) -> SearchRequestParams
fn clone(&self) -> SearchRequestParams
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 SearchRequestParams
impl Debug for SearchRequestParams
Source§impl Default for SearchRequestParams
impl Default for SearchRequestParams
Source§fn default() -> SearchRequestParams
fn default() -> SearchRequestParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchRequestParams
impl<'de> Deserialize<'de> for SearchRequestParams
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 SearchRequestParams
impl RefUnwindSafe for SearchRequestParams
impl Send for SearchRequestParams
impl Sync for SearchRequestParams
impl Unpin for SearchRequestParams
impl UnwindSafe for SearchRequestParams
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