pub struct PaperSearchResults {
pub results: Vec<PaperHit>,
pub total_results: Option<u64>,
}Expand description
The result of a discovery search: the hits plus the upstream total.
Fields§
§results: Vec<PaperHit>The candidate papers (length ≤ query.limit).
total_results: Option<u64>OpenAlex meta.count — the total number of matching works
upstream (usually far larger than results.len()), or None if
the response omitted it. Lets an agent see “showing 25 of 4012”.
Trait Implementations§
Source§impl Clone for PaperSearchResults
impl Clone for PaperSearchResults
Source§fn clone(&self) -> PaperSearchResults
fn clone(&self) -> PaperSearchResults
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 PaperSearchResults
impl Debug for PaperSearchResults
Source§impl PartialEq for PaperSearchResults
impl PartialEq for PaperSearchResults
Source§fn eq(&self, other: &PaperSearchResults) -> bool
fn eq(&self, other: &PaperSearchResults) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaperSearchResults
impl Serialize for PaperSearchResults
impl StructuralPartialEq for PaperSearchResults
Auto Trait Implementations§
impl Freeze for PaperSearchResults
impl RefUnwindSafe for PaperSearchResults
impl Send for PaperSearchResults
impl Sync for PaperSearchResults
impl Unpin for PaperSearchResults
impl UnsafeUnpin for PaperSearchResults
impl UnwindSafe for PaperSearchResults
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