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 UnsafeUnpin 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