#[non_exhaustive]pub struct SearchResults {
pub total_count: u32,
pub range: (u32, u32),
pub patents: Vec<SearchResultPatent>,
}Expand description
Page of results from EpoClient::fetch_search.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_count: u32Total number of patents matching the query across the whole index (NOT just the returned page). EPO caps very large queries.
range: (u32, u32)(begin, end) of the returned slice (1-indexed, inclusive). For a
Range: 1-10 request returning 10 hits, this is (1, 10).
patents: Vec<SearchResultPatent>The actual hits, deduplicated by patent_id within the page.
Trait Implementations§
Source§impl Clone for SearchResults
impl Clone for SearchResults
Source§fn clone(&self) -> SearchResults
fn clone(&self) -> SearchResults
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 SearchResults
impl RefUnwindSafe for SearchResults
impl Send for SearchResults
impl Sync for SearchResults
impl Unpin for SearchResults
impl UnsafeUnpin for SearchResults
impl UnwindSafe for SearchResults
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