pub struct CacheGcArgs {
pub dry_run: bool,
pub older_than: Option<String>,
pub json: bool,
}Fields§
§dry_run: boolShow what would be removed without deleting.
older_than: Option<String>Only remove entries older than this duration (e.g. 30d, 12h, 90m, 60s).
json: boolEmit results as JSON matching CacheGcModelSchema.
Trait Implementations§
Source§impl Args for CacheGcArgs
impl Args for CacheGcArgs
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 Debug for CacheGcArgs
impl Debug for CacheGcArgs
Source§impl FromArgMatches for CacheGcArgs
impl FromArgMatches for CacheGcArgs
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 Forget for CacheGcArgs
impl Freeze for CacheGcArgs
impl Move for CacheGcArgs
impl RefUnwindSafe for CacheGcArgs
impl Send for CacheGcArgs
impl Sync for CacheGcArgs
impl Unpin for CacheGcArgs
impl UnsafeUnpin for CacheGcArgs
impl UnwindSafe for CacheGcArgs
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