pub struct JsonCleanupResult {
pub success_count: usize,
pub failure_count: usize,
pub total_freed: u64,
pub total_freed_formatted: String,
pub errors: Vec<String>,
}Expand description
Results of a cleanup operation.
Fields§
§success_count: usizeNumber of projects successfully cleaned.
failure_count: usizeNumber of projects that failed to clean.
total_freed: u64Total bytes actually freed.
total_freed_formatted: StringHuman-readable formatted freed size.
errors: Vec<String>Error messages for projects that failed.
Implementations§
Source§impl JsonCleanupResult
impl JsonCleanupResult
Sourcepub fn from_clean_result(result: &CleanResult) -> Self
pub fn from_clean_result(result: &CleanResult) -> Self
Convert a CleanResult into a JsonCleanupResult.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonCleanupResult
impl RefUnwindSafe for JsonCleanupResult
impl Send for JsonCleanupResult
impl Sync for JsonCleanupResult
impl Unpin for JsonCleanupResult
impl UnsafeUnpin for JsonCleanupResult
impl UnwindSafe for JsonCleanupResult
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> 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