pub enum Source {
Show 18 variants
Arxiv,
Biorxiv,
Medrxiv,
Pubmed,
Pmc,
Europepmc,
Scholar,
Xueshu,
Semantic,
Crossref,
Openalex,
Dblp,
Core,
Openaire,
Doaj,
Unpaywall,
Zenodo,
Hal,
}Variants§
Arxiv
Biorxiv
Medrxiv
Pubmed
Pmc
Europepmc
Scholar
Xueshu
Semantic
Crossref
Openalex
Dblp
Core
Openaire
Doaj
Unpaywall
Zenodo
Hal
Implementations§
Source§impl Source
impl Source
pub fn name(&self) -> &'static str
pub fn caps(&self) -> Capabilities
Sourcepub fn base_url(&self) -> String
pub fn base_url(&self) -> String
Base URL for metadata requests, overridable via this source’s env var.
Sourcepub fn pdf_base_url(&self) -> String
pub fn pdf_base_url(&self) -> String
Base URL for PDF downloads.
Sources whose files live on a different host than their API get their own override; failing that an explicitly-set general override still applies, so pointing one variable at a test server redirects both. Only the defaults are kept separate.
Sourcepub fn from_name(token: &str) -> Option<Source>
pub fn from_name(token: &str) -> Option<Source>
Resolve a source from a CLI token, for the [source] <id> forms where
clap cannot type the argument as an enum.
pub fn entry(&self) -> &'static SourceEntry
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.