pub struct BuildArtifacts {
pub path: PathBuf,
pub size: u64,
}Expand description
Information about build artifacts that can be cleaned.
This struct contains metadata about the build directory or artifacts that are candidates for cleanup, including their location and total size.
Fields§
§path: PathBufPath to the build directory (target/ or node_modules/)
This is the directory that will be deleted during cleanup operations.
For Rust projects, this points to the target/ directory.
For Node.js projects, this points to the node_modules/ directory.
size: u64Total size of the build directory in bytes
This value is calculated by recursively summing the sizes of all files within the build directory. It’s used for filtering and reporting purposes.
Trait Implementations§
Source§impl Clone for BuildArtifacts
impl Clone for BuildArtifacts
Source§fn clone(&self) -> BuildArtifacts
fn clone(&self) -> BuildArtifacts
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 BuildArtifacts
impl RefUnwindSafe for BuildArtifacts
impl Send for BuildArtifacts
impl Sync for BuildArtifacts
impl Unpin for BuildArtifacts
impl UnsafeUnpin for BuildArtifacts
impl UnwindSafe for BuildArtifacts
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