pub struct SearchParameters {
pub from_date: Option<String>,
pub to_date: Option<String>,
pub max_search_results: Option<i32>,
pub mode: Option<String>,
pub return_citations: Option<bool>,
pub sources: Option<Vec<SearchSource>>,
}Expand description
Parameters to control realtime data.
Fields§
§from_date: Option<String>Date from which to consider the results in ISO-8601 YYYY-MM-DD format.
to_date: Option<String>Date up to which to consider the results in ISO-8601 YYYY-MM-DD format.
max_search_results: Option<i32>Maximum number of search results to use. Defaults to 15.
mode: Option<String>Choose the mode to query realtime data: off, on (default), or auto.
return_citations: Option<bool>Whether to return citations in the response or not. Defaults to true.
sources: Option<Vec<SearchSource>>List of sources to search in.
Trait Implementations§
Source§impl Clone for SearchParameters
impl Clone for SearchParameters
Source§fn clone(&self) -> SearchParameters
fn clone(&self) -> SearchParameters
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 SearchParameters
impl Debug for SearchParameters
Source§impl Default for SearchParameters
impl Default for SearchParameters
Source§fn default() -> SearchParameters
fn default() -> SearchParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchParameters
impl<'de> Deserialize<'de> for SearchParameters
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
Source§impl PartialEq for SearchParameters
impl PartialEq for SearchParameters
Source§impl Serialize for SearchParameters
impl Serialize for SearchParameters
impl StructuralPartialEq for SearchParameters
Auto Trait Implementations§
impl Freeze for SearchParameters
impl RefUnwindSafe for SearchParameters
impl Send for SearchParameters
impl Sync for SearchParameters
impl Unpin for SearchParameters
impl UnwindSafe for SearchParameters
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