pub struct PrunedDir {
pub repo_path: PathBuf,
pub bloat_dir: String,
pub adapter: String,
pub size_freed: u64,
pub runtime: Option<String>,
}Expand description
One directory a prune pass deleted.
Enough to put it back and nothing more: which repository it belonged to, which project inside that repository owned it, and who verified it. No file list — the lockfile is the record of the contents, which is the whole premise of the tool.
Fields§
§repo_path: PathBufRepository root the directory belonged to.
bloat_dir: StringRepository-relative label, /-separated: node_modules, frontend/node_modules.
adapter: StringAdapter that verified and deleted it.
size_freed: u64Bytes reclaimed.
runtime: Option<String>The language runtime the deleted directory was built against — "3.12" for a
virtual environment created by Python 3.12 — so a restore can rebuild on that
interpreter instead of on whatever happens to be first on PATH today.
None for every manager that pins its own toolchain in the lockfile (cargo, npm,
go) and for anything pruned before 1.4.0. Optional rather than required for that
second reason: a registry.json written by an older version has to keep loading.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrunedDir
impl<'de> Deserialize<'de> for PrunedDir
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PrunedDir
impl StructuralPartialEq for PrunedDir
Auto Trait Implementations§
impl Freeze for PrunedDir
impl RefUnwindSafe for PrunedDir
impl Send for PrunedDir
impl Sync for PrunedDir
impl Unpin for PrunedDir
impl UnsafeUnpin for PrunedDir
impl UnwindSafe for PrunedDir
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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