pub enum Prefixes {
Identifier(String),
Works(WorksIdentQuery),
}Expand description
constructs the request payload for the /prefixes route
Variants§
Identifier(String)
target a specific member at /prefixes/{id}
Works(WorksIdentQuery)
target a Work for a specific prefix at /prefixes/{id}/works?query..
Trait Implementations§
Source§impl CrossrefQuery for Prefixes
impl CrossrefQuery for Prefixes
Source§fn resource_component(self) -> ResourceComponent
fn resource_component(self) -> ResourceComponent
the resource component endpoint this route targets
Source§impl CrossrefRoute for Prefixes
impl CrossrefRoute for Prefixes
Source§impl WorksCombiner for Prefixes
impl WorksCombiner for Prefixes
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 Prefixes
impl RefUnwindSafe for Prefixes
impl Send for Prefixes
impl Sync for Prefixes
impl Unpin for Prefixes
impl UnsafeUnpin for Prefixes
impl UnwindSafe for Prefixes
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