pub struct CleanableItem {
pub name: String,
pub category: String,
pub subcategory: String,
pub icon: &'static str,
pub path: PathBuf,
pub size: u64,
pub file_count: Option<u64>,
pub last_modified: Option<SystemTime>,
pub description: &'static str,
pub safe_to_delete: SafetyLevel,
pub clean_command: Option<String>,
}Expand description
A cleanable item found by a cleaner module
Fields§
§name: StringHuman-readable name
category: StringCategory (e.g., “Xcode”, “Docker”)
subcategory: StringSubcategory (e.g., “DerivedData”, “Simulators”)
icon: &'static strIcon for display
path: PathBufFull path
size: u64Size in bytes
file_count: Option<u64>Number of files (if applicable)
last_modified: Option<SystemTime>Last modification time
description: &'static strDescription of what this is
safe_to_delete: SafetyLevelIs it safe to delete?
clean_command: Option<String>Official clean command (if available)
Implementations§
Trait Implementations§
Source§impl Clone for CleanableItem
impl Clone for CleanableItem
Source§fn clone(&self) -> CleanableItem
fn clone(&self) -> CleanableItem
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 CleanableItem
impl Debug for CleanableItem
Source§impl Deserialize<'static> for CleanableItem
impl Deserialize<'static> for CleanableItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CleanableItem
impl RefUnwindSafe for CleanableItem
impl Send for CleanableItem
impl Sync for CleanableItem
impl Unpin for CleanableItem
impl UnwindSafe for CleanableItem
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