pub enum LifecycleQuery {
All,
Filtered(LifecycleFilter),
Default,
}Expand description
The lifecycle view requested by the CLI. This is the single query model
shared by the list commands (findings, assets, services): --all requests
every lifecycle including removed/fixed; the default view hides long-gone
records; an explicit --lifecycle/--status/legacy singleton restricts to
one state.
Variants§
All
Show every lifecycle state, including removed/fixed (--all).
Filtered(LifecycleFilter)
Restrict to one lifecycle state (--lifecycle/--status/--new/…).
Default
Default view: every record except removed/fixed.
Implementations§
Source§impl LifecycleQuery
impl LifecycleQuery
Sourcepub fn parse(
args: &Args,
override_new: bool,
override_fixed: bool,
) -> Result<Self>
pub fn parse( args: &Args, override_new: bool, override_fixed: bool, ) -> Result<Self>
Parse the shared query from CLI args. Legacy singletons (--new,
--fixed, --changed) map to the equivalent lifecycle so all commands
share one query model; override_new/override_fixed scope whether a
view supports the --new/--fixed spellings.
pub fn matches(&self, lifecycle: Lifecycle) -> bool
pub fn label(&self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for LifecycleQuery
impl Clone for LifecycleQuery
impl Copy for LifecycleQuery
Source§impl Debug for LifecycleQuery
impl Debug for LifecycleQuery
impl Eq for LifecycleQuery
Source§impl PartialEq for LifecycleQuery
impl PartialEq for LifecycleQuery
impl StructuralPartialEq for LifecycleQuery
Auto Trait Implementations§
impl Freeze for LifecycleQuery
impl RefUnwindSafe for LifecycleQuery
impl Send for LifecycleQuery
impl Sync for LifecycleQuery
impl Unpin for LifecycleQuery
impl UnsafeUnpin for LifecycleQuery
impl UnwindSafe for LifecycleQuery
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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