pub struct PlanOptions { /* private fields */ }Expand description
Optional conditions used while generating a removal plan.
Implementations§
Source§impl PlanOptions
impl PlanOptions
Sourcepub fn new(modified_range: ModifiedRange) -> Self
pub fn new(modified_range: ModifiedRange) -> Self
Constructs options with a modification-time range.
Sourcepub fn with_size_range(self, size_range: SizeRange) -> Self
pub fn with_size_range(self, size_range: SizeRange) -> Self
Adds a file-size range to these options.
This can be used with PlanOptions::default for size-only selection or chained
after PlanOptions::new to combine size and modification-time conditions.
Sourcepub fn modified_range(&self) -> Option<&ModifiedRange>
pub fn modified_range(&self) -> Option<&ModifiedRange>
Returns the modification-time range, if specified.
Sourcepub fn size_range(&self) -> Option<&SizeRange>
pub fn size_range(&self) -> Option<&SizeRange>
Returns the file-size range, if specified.
Trait Implementations§
Source§impl Clone for PlanOptions
impl Clone for PlanOptions
Source§impl Debug for PlanOptions
impl Debug for PlanOptions
Source§impl Default for PlanOptions
impl Default for PlanOptions
impl Eq for PlanOptions
Source§impl PartialEq for PlanOptions
impl PartialEq for PlanOptions
impl StructuralPartialEq for PlanOptions
Auto Trait Implementations§
impl Forget for PlanOptions
impl Freeze for PlanOptions
impl Move for PlanOptions
impl RefUnwindSafe for PlanOptions
impl Send for PlanOptions
impl Sync for PlanOptions
impl Unpin for PlanOptions
impl UnsafeUnpin for PlanOptions
impl UnwindSafe for PlanOptions
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