pub enum Types {
All,
Identifier(String),
Works(WorksIdentQuery),
}
Expand description
constructs the request payload for the /types
route
Variants§
All
every available type
Identifier(String)
target a specific type at /types/{id}
Works(WorksIdentQuery)
target a Work
for a specific type at /types/{id}/works?query..
Trait Implementations§
Source§impl CrossrefQuery for Types
impl CrossrefQuery for Types
Source§fn resource_component(self) -> ResourceComponent
fn resource_component(self) -> ResourceComponent
the resource component endpoint this route targets
Source§impl CrossrefRoute for Types
impl CrossrefRoute for Types
Source§impl WorksCombiner for Types
impl WorksCombiner for Types
Source§fn primary_component() -> Component
fn primary_component() -> Component
the primary component of this type
Source§fn ident_query(ident: WorksIdentQuery) -> Self
fn ident_query(ident: WorksIdentQuery) -> Self
construct a new type
Source§fn combined_route(ident: &WorksIdentQuery) -> Result<String>
fn combined_route(ident: &WorksIdentQuery) -> Result<String>
the combined crossref route
Source§fn work_list_query(ident: WorksIdentQuery) -> WorkListQuery
fn work_list_query(ident: WorksIdentQuery) -> WorkListQuery
create a new combined
WorkListQuery
with the primary componentAuto Trait Implementations§
impl Freeze for Types
impl RefUnwindSafe for Types
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnwindSafe for Types
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