pub struct SearchParameters {
pub mode: SearchMode,
pub return_citations: Option<bool>,
pub from_date: Option<String>,
pub to_date: Option<String>,
}
Fields§
§mode: SearchMode
§return_citations: Option<bool>
§from_date: Option<String>
Inclusive yyyy-mm-dd
to_date: Option<String>
Inclusive upper‐bound yyyy-mm-dd
Implementations§
Source§impl SearchParameters
impl SearchParameters
pub fn new(mode: SearchMode) -> Self
pub fn with_citations(self, yes: bool) -> Self
pub fn with_date_range_str( self, from: impl Into<String>, to: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for SearchParameters
impl Clone for SearchParameters
Source§fn clone(&self) -> SearchParameters
fn clone(&self) -> SearchParameters
Returns a copy 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
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