pub struct SearchDateRange {
pub date_type: SearchDateType,
pub min_date: String,
pub max_date: String,
}Expand description
A date range sent as the datetype / mindate / maxdate parameters of
ESearch and ELink.
Both ends are always sent: ESearch silently ignores maxdate (or
mindate) when it arrives without the other.
Fields§
§date_type: SearchDateTypeThe date the range applies to
min_date: StringInclusive lower bound, as YYYY, YYYY/MM or YYYY/MM/DD
max_date: StringInclusive upper bound, as YYYY, YYYY/MM or YYYY/MM/DD
Implementations§
Source§impl SearchDateRange
impl SearchDateRange
Sourcepub const EARLIEST: &'static str = "1000/01/01"
pub const EARLIEST: &'static str = "1000/01/01"
Lower bound used by SearchDateRange::until: earlier than any PubMed record.
Sourcepub fn new(
date_type: SearchDateType,
min_date: impl Into<String>,
max_date: impl Into<String>,
) -> Self
pub fn new( date_type: SearchDateType, min_date: impl Into<String>, max_date: impl Into<String>, ) -> Self
A range between two inclusive dates (YYYY, YYYY/MM or YYYY/MM/DD)
Sourcepub fn until(date_type: SearchDateType, max_date: impl Into<String>) -> Self
pub fn until(date_type: SearchDateType, max_date: impl Into<String>) -> Self
Everything up to and including max_date
Trait Implementations§
Source§impl Clone for SearchDateRange
impl Clone for SearchDateRange
Source§fn clone(&self) -> SearchDateRange
fn clone(&self) -> SearchDateRange
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 SearchDateRange
impl Debug for SearchDateRange
Source§impl PartialEq for SearchDateRange
impl PartialEq for SearchDateRange
impl Eq for SearchDateRange
impl StructuralPartialEq for SearchDateRange
Auto Trait Implementations§
impl Freeze for SearchDateRange
impl RefUnwindSafe for SearchDateRange
impl Send for SearchDateRange
impl Sync for SearchDateRange
impl Unpin for SearchDateRange
impl UnwindSafe for SearchDateRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more