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