pub enum ProjectSelector {
Any,
Orphans,
Qualified(GlobalId),
Native(NativeId),
}Expand description
Which project a task must belong to, as a command line names it.
Qualified (work:PROJ-1) or bare (PROJ-1), because both are things a user types
and they mean different queries: a qualified id names one project of one source and
restricts the query to it, while a bare one is a native id every selected source is
asked about. Which of the two a string is depends on whether its prefix names a
configured source, so a native id full of colons is still a native id.
Variants§
Any
No constraint.
Orphans
Only tasks belonging to no project at all.
Qualified(GlobalId)
One project of one source.
Native(NativeId)
A native id, asked of every selected source.
Trait Implementations§
Source§impl Clone for ProjectSelector
impl Clone for ProjectSelector
Source§fn clone(&self) -> ProjectSelector
fn clone(&self) -> ProjectSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectSelector
impl Debug for ProjectSelector
Source§impl Default for ProjectSelector
impl Default for ProjectSelector
Source§fn default() -> ProjectSelector
fn default() -> ProjectSelector
Returns the “default value” for a type. Read more
impl Eq for ProjectSelector
Source§impl PartialEq for ProjectSelector
impl PartialEq for ProjectSelector
impl StructuralPartialEq for ProjectSelector
Auto Trait Implementations§
impl Freeze for ProjectSelector
impl RefUnwindSafe for ProjectSelector
impl Send for ProjectSelector
impl Sync for ProjectSelector
impl Unpin for ProjectSelector
impl UnsafeUnpin for ProjectSelector
impl UnwindSafe for ProjectSelector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.