pub enum ResourceComponent {
Works(Works),
Funders(Funders),
Prefixes(Prefixes),
Members(Members),
Types(Types),
Journals(Journals),
}
Expand description
bundles all available crossref api endpoints
Variants§
Works(Works)
returns a list of all works (journal articles, conference proceedings, books, components, etc), 20 per page
Funders(Funders)
returns a list of all funders in the Funder Registry
Prefixes(Prefixes)
returns a list of all Crossref members (mostly publishers)
Members(Members)
returns a list of valid work types
Types(Types)
return a list of licenses applied to works in Crossref metadata
Journals(Journals)
return a list of journals in the Crossref database
Implementations§
Source§impl ResourceComponent
impl ResourceComponent
Sourcepub fn primary_component(&self) -> Component
pub fn primary_component(&self) -> Component
the starting crossref component that in the route /{primary_component}/{id}/works
Trait Implementations§
Source§impl Clone for ResourceComponent
impl Clone for ResourceComponent
Source§fn clone(&self) -> ResourceComponent
fn clone(&self) -> ResourceComponent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CrossrefQuery for ResourceComponent
impl CrossrefQuery for ResourceComponent
Source§fn resource_component(self) -> ResourceComponent
fn resource_component(self) -> ResourceComponent
the resource component endpoint this route targets
Source§impl CrossrefRoute for ResourceComponent
impl CrossrefRoute for ResourceComponent
Source§impl Debug for ResourceComponent
impl Debug for ResourceComponent
Auto Trait Implementations§
impl Freeze for ResourceComponent
impl RefUnwindSafe for ResourceComponent
impl Send for ResourceComponent
impl Sync for ResourceComponent
impl Unpin for ResourceComponent
impl UnwindSafe for ResourceComponent
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<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 more