pub struct PruneOptions {
pub age_days: Option<u32>,
pub statuses: HashSet<TaskStatus>,
pub keep_last: Option<u32>,
pub dry_run: bool,
}Expand description
Options for pruning tasks from the done archive.
Fields§
§age_days: Option<u32>Minimum age in days for a task to be pruned (None = no age filter).
statuses: HashSet<TaskStatus>Statuses to prune (empty = all statuses).
keep_last: Option<u32>Keep the N most recently completed tasks regardless of other filters.
dry_run: boolIf true, report what would be pruned without writing to disk.
Trait Implementations§
Source§impl Clone for PruneOptions
impl Clone for PruneOptions
Source§fn clone(&self) -> PruneOptions
fn clone(&self) -> PruneOptions
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 moreAuto Trait Implementations§
impl Freeze for PruneOptions
impl RefUnwindSafe for PruneOptions
impl Send for PruneOptions
impl Sync for PruneOptions
impl Unpin for PruneOptions
impl UnsafeUnpin for PruneOptions
impl UnwindSafe for PruneOptions
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