pub struct CleanConfig {
pub use_trash: bool,
pub dry_run: bool,
pub force: bool,
pub skip_git_check: bool,
pub artifact_kinds: Option<Vec<ArtifactKind>>,
pub parallelism: Option<usize>,
pub continue_on_error: bool,
}Expand description
Configuration for cleaning operations
Fields§
§use_trash: boolUse trash instead of permanent deletion
dry_run: boolDry run - don’t actually delete anything
force: boolForce clean even with warnings
skip_git_check: boolSkip git status checks
artifact_kinds: Option<Vec<ArtifactKind>>Specific artifact kinds to clean (None = all)
parallelism: Option<usize>Maximum concurrent delete operations
continue_on_error: boolContinue on errors
Implementations§
Source§impl CleanConfig
impl CleanConfig
Sourcepub fn with_force(self) -> Self
pub fn with_force(self) -> Self
Set to force mode
Sourcepub fn without_git_check(self) -> Self
pub fn without_git_check(self) -> Self
Skip git checks
Sourcepub fn with_kinds(self, kinds: Vec<ArtifactKind>) -> Self
pub fn with_kinds(self, kinds: Vec<ArtifactKind>) -> Self
Filter to specific artifact kinds
Trait Implementations§
Source§impl Clone for CleanConfig
impl Clone for CleanConfig
Source§fn clone(&self) -> CleanConfig
fn clone(&self) -> CleanConfig
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 CleanConfig
impl Debug for CleanConfig
Auto Trait Implementations§
impl Freeze for CleanConfig
impl RefUnwindSafe for CleanConfig
impl Send for CleanConfig
impl Sync for CleanConfig
impl Unpin for CleanConfig
impl UnwindSafe for CleanConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more