pub struct JsonSummary {
pub total_projects: usize,
pub total_size: u64,
pub total_size_formatted: String,
pub by_type: BTreeMap<String, JsonTypeSummary>,
}Expand description
Aggregated summary across all matched projects.
Fields§
§total_projects: usizeTotal number of projects found.
total_size: u64Total reclaimable size in bytes.
total_size_formatted: StringHuman-readable formatted total size.
by_type: BTreeMap<String, JsonTypeSummary>Per-type breakdown (key is the project type name).
Implementations§
Source§impl JsonSummary
impl JsonSummary
Sourcepub fn from_projects(projects: &[Project]) -> Self
pub fn from_projects(projects: &[Project]) -> Self
Compute summary statistics from a slice of projects.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonSummary
impl RefUnwindSafe for JsonSummary
impl Send for JsonSummary
impl Sync for JsonSummary
impl Unpin for JsonSummary
impl UnsafeUnpin for JsonSummary
impl UnwindSafe for JsonSummary
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