pub enum WorkListQuery {
Works(WorksQuery),
Combined {
primary_component: WorksComponent,
ident: WorksIdentQuery,
},
}Expand description
Wraps queries that target WorkList, either directly or combined
Variants§
Works(WorksQuery)
Target Works directly
Combined
Target the corresponding Works of a specific Component
Fields
§
primary_component: WorksComponentthe component whose works are being targeted
§
ident: WorksIdentQuerythe component id, and the query to narrow its works with
Implementations§
Source§impl WorkListQuery
impl WorkListQuery
Sourcepub fn query(&self) -> &WorksQuery
pub fn query(&self) -> &WorksQuery
the underlying WorksQuery
Sourcepub fn query_mut(&mut self) -> &mut WorksQuery
pub fn query_mut(&mut self) -> &mut WorksQuery
mut reference to the underlying Worksquery
Trait Implementations§
Source§impl Clone for WorkListQuery
impl Clone for WorkListQuery
Source§impl CrossrefQuery for WorkListQuery
impl CrossrefQuery for WorkListQuery
Source§fn resource_component(self) -> ResourceComponent
fn resource_component(self) -> ResourceComponent
the resource component endpoint this route targets
Source§impl CrossrefRoute for WorkListQuery
impl CrossrefRoute for WorkListQuery
Source§impl Debug for WorkListQuery
impl Debug for WorkListQuery
Source§impl<T: ToString> From<T> for WorkListQuery
impl<T: ToString> From<T> for WorkListQuery
Source§impl From<WorksQuery> for WorkListQuery
impl From<WorksQuery> for WorkListQuery
Source§fn from(val: WorksQuery) -> Self
fn from(val: WorksQuery) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkListQuery
impl RefUnwindSafe for WorkListQuery
impl Send for WorkListQuery
impl Sync for WorkListQuery
impl Unpin for WorkListQuery
impl UnsafeUnpin for WorkListQuery
impl UnwindSafe for WorkListQuery
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