pub struct PaperQuery {
pub clauses: Vec<TextClause>,
pub identities: Vec<PaperIdentity>,
pub after: Option<String>,
pub before: Option<String>,
pub mode: PaperMode,
pub sort: Option<PaperSort>,
pub limit: Option<usize>,
pub provider: Option<PaperProvider>,
pub original: String,
}Expand description
Parsed, provider-independent paper query.
Fields§
§clauses: Vec<TextClause>Typed text clauses.
identities: Vec<PaperIdentity>Exact identities, matched as alternatives.
after: Option<String>Inclusive lower publication-date bound (YYYY-MM-DD).
before: Option<String>Inclusive upper publication-date bound (YYYY-MM-DD).
mode: PaperModeRelevance/date/citation mode.
sort: Option<PaperSort>Strict explicit sort override.
limit: Option<usize>Optional result limit from 1 through 100.
provider: Option<PaperProvider>Optional provider restriction.
original: StringOriginal query text retained as evidence.
Trait Implementations§
Source§impl Clone for PaperQuery
impl Clone for PaperQuery
Source§fn clone(&self) -> PaperQuery
fn clone(&self) -> PaperQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaperQuery
impl Debug for PaperQuery
Source§impl Default for PaperQuery
impl Default for PaperQuery
Source§fn default() -> PaperQuery
fn default() -> PaperQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaperQuery
impl<'de> Deserialize<'de> for PaperQuery
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
impl Eq for PaperQuery
Source§impl PartialEq for PaperQuery
impl PartialEq for PaperQuery
Source§impl Serialize for PaperQuery
impl Serialize for PaperQuery
impl StructuralPartialEq for PaperQuery
Auto Trait Implementations§
impl Freeze for PaperQuery
impl RefUnwindSafe for PaperQuery
impl Send for PaperQuery
impl Sync for PaperQuery
impl Unpin for PaperQuery
impl UnsafeUnpin for PaperQuery
impl UnwindSafe for PaperQuery
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