pub struct OpenAlexSource { /* private fields */ }Expand description
OpenAlex (api.openalex.org) — 250M+ works with free, keyless metadata.
Modeled on SemanticScholarSource: reqwest + serde DTOs, explicit non-2xx
checks, and offline tests over a canned JSON fixture.
Implementations§
Trait Implementations§
Source§impl Default for OpenAlexSource
impl Default for OpenAlexSource
Source§impl PaperSource for OpenAlexSource
impl PaperSource for OpenAlexSource
Source§fn fetch_papers<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Paper>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_papers<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Paper>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch papers matching a query from an external source.
Auto Trait Implementations§
impl !RefUnwindSafe for OpenAlexSource
impl !UnwindSafe for OpenAlexSource
impl Freeze for OpenAlexSource
impl Send for OpenAlexSource
impl Sync for OpenAlexSource
impl Unpin for OpenAlexSource
impl UnsafeUnpin for OpenAlexSource
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