pub enum Works {
Identifier(String),
Query(WorksQuery),
Agency(String),
}
Expand description
Retrieve a publication by DOI
§Example
ⓘ
use crossref::Works;
let works = Works::doi("10.1037/0003-066X.59.1.29");
Target the agency of a specific publication, where the str supplied is corresponded to the publication’s DOI
§Example
ⓘ
use crossref::Works;
let works = Works::agency_for_doi("10.1037/0003-066X.59.1.29");
Variants§
Identifier(String)
target a Work by a specific id
Query(WorksQuery)
target Works by a query
Agency(String)
return the registration agency for a DOI
Implementations§
Trait Implementations§
Source§impl CrossrefQuery for Works
impl CrossrefQuery for Works
Source§fn resource_component(self) -> ResourceComponent
fn resource_component(self) -> ResourceComponent
the resource component endpoint this route targets
Source§impl CrossrefRoute for Works
impl CrossrefRoute for Works
Auto Trait Implementations§
impl Freeze for Works
impl RefUnwindSafe for Works
impl Send for Works
impl Sync for Works
impl Unpin for Works
impl UnwindSafe for Works
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