pub struct QueuePruneArgs {
pub age: Option<u32>,
pub status: Vec<StatusArg>,
pub keep_last: Option<u32>,
pub dry_run: bool,
}Expand description
Arguments for ralph queue prune.
Fields§
§age: Option<u32>Only prune tasks completed at least N days ago.
status: Vec<StatusArg>Filter by task status (repeatable).
keep_last: Option<u32>Keep the N most recently completed tasks regardless of filters.
dry_run: boolShow what would be pruned without writing to disk.
Trait Implementations§
Source§impl Args for QueuePruneArgs
impl Args for QueuePruneArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for QueuePruneArgs
impl FromArgMatches for QueuePruneArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for QueuePruneArgs
impl RefUnwindSafe for QueuePruneArgs
impl Send for QueuePruneArgs
impl Sync for QueuePruneArgs
impl Unpin for QueuePruneArgs
impl UnsafeUnpin for QueuePruneArgs
impl UnwindSafe for QueuePruneArgs
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