pub struct ExternalArgs {
pub limit: usize,
pub from_year: Option<i32>,
pub to_year: Option<i32>,
pub oa_only: bool,
pub min_citations: Option<u64>,
pub author: Option<String>,
pub venue: Option<String>,
pub publisher: Option<String>,
pub sort: SortArg,
}Expand description
External-discovery flag bundle (everything except query / mode).
Bundled so the main.rs dispatch arm and run stay readable.
Fields§
§limit: usizeMax results; validated to 1..=200 (OpenAlex per-page ceiling) by
PaperSearchQuery::validate — an out-of-range value is rejected,
not silently clamped.
from_year: Option<i32>Inclusive lower publication-year bound.
to_year: Option<i32>Inclusive upper publication-year bound.
oa_only: boolRestrict to open-access works.
min_citations: Option<u64>Only works cited strictly more than this many times.
Author name to filter by (resolved to an OpenAlex author ID).
venue: Option<String>Venue / journal name to filter by (resolved to an OpenAlex source ID).
publisher: Option<String>Publisher name to filter by (resolved to an OpenAlex publisher ID).
sort: SortArgResult ordering.
Trait Implementations§
Source§impl Clone for ExternalArgs
impl Clone for ExternalArgs
Source§fn clone(&self) -> ExternalArgs
fn clone(&self) -> ExternalArgs
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 moreAuto Trait Implementations§
impl Freeze for ExternalArgs
impl RefUnwindSafe for ExternalArgs
impl Send for ExternalArgs
impl Sync for ExternalArgs
impl Unpin for ExternalArgs
impl UnsafeUnpin for ExternalArgs
impl UnwindSafe for ExternalArgs
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