pub struct PruneResult {
pub repo_path: PathBuf,
pub adapter_name: String,
pub bloat_dir: String,
pub size_freed: u64,
pub shared_bytes: u64,
pub runtime: Option<String>,
pub status: PruneStatus,
}Expand description
Result of pruning a single bloat directory in a single repo.
Fields§
§repo_path: PathBufPath to the repository.
adapter_name: StringName of the adapter that handled this.
bloat_dir: StringThe bloat directory that was (or would be) pruned.
size_freed: u64Bytes freed (0 if not pruned).
Bytes hardlinked into a package-manager store outside the pruned directory.
The store keeps them, so they are excluded from size_freed — this carries
them separately so reports can say why the number is smaller than du says.
runtime: Option<String>The language runtime the directory was built against, captured before the delete.
Only the Python managers set it; see crate::config::PrunedDir::runtime.
status: PruneStatusWhat happened.
Implementations§
Source§impl PruneResult
impl PruneResult
Sourcepub fn project_dir(&self) -> PathBuf
pub fn project_dir(&self) -> PathBuf
The directory a fix command has to be run from.
bloat_dir is the label relative to the repository root, so in a monorepo it is
backend/.venv, not .venv — and uv lock run at the repository root would
rebuild a different project, or find nothing at all. Its parent is the project
directory the adapter actually detected. A fix command you can only run after
working out which directory it meant is not a fix command.
Trait Implementations§
Source§impl Clone for PruneResult
impl Clone for PruneResult
Source§fn clone(&self) -> PruneResult
fn clone(&self) -> PruneResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PruneResult
impl RefUnwindSafe for PruneResult
impl Send for PruneResult
impl Sync for PruneResult
impl Unpin for PruneResult
impl UnsafeUnpin for PruneResult
impl UnwindSafe for PruneResult
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
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> ⓘ
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> ⓘ
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