pub struct CleanOptions {
pub dry_run: bool,
pub max_age_hours: u32,
pub prune: bool,
pub older_than_days: u32,
}Expand description
Options for clean/prune operations.
Fields§
§dry_run: boolIf true, don’t actually make changes.
max_age_hours: u32Maximum age in hours for pending files before they’re considered stale.
prune: boolIf true, also prune old archive data.
older_than_days: u32Delete archive data older than this many days (when prune=true).
Trait Implementations§
Source§impl Clone for CleanOptions
impl Clone for CleanOptions
Source§fn clone(&self) -> CleanOptions
fn clone(&self) -> CleanOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 CleanOptions
impl Debug for CleanOptions
Auto Trait Implementations§
impl Freeze for CleanOptions
impl RefUnwindSafe for CleanOptions
impl Send for CleanOptions
impl Sync for CleanOptions
impl Unpin for CleanOptions
impl UnwindSafe for CleanOptions
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