pub struct DisplayPack {
pub name: String,
pub files: Vec<DisplayFile>,
pub summary_status: String,
pub summary_count: usize,
}Expand description
A pack entry for status display.
Fields§
§name: String§files: Vec<DisplayFile>§summary_status: StringAggregated pack-level status, one of "error", "pending",
"deployed". Rollup rules: error ← any file with error or
broken; otherwise pending ← any file with pending,
warning, or stale; otherwise deployed. Always populated so
JSON consumers and short-mode templates can use it uniformly.
summary_count: usizeNumber of files in the pack whose status rolls up to
summary_status. Displayed as (N) in short-mode output.
Implementations§
Source§impl DisplayPack
impl DisplayPack
Sourcepub fn new(name: String, files: Vec<DisplayFile>) -> Self
pub fn new(name: String, files: Vec<DisplayFile>) -> Self
Compute aggregated status and count from the pack’s files.
Sourcepub fn recompute_summary(&mut self)
pub fn recompute_summary(&mut self)
Recompute summary_status / summary_count after mutating
files (e.g. after overlay_errors flips a row to error or
adopt failures synthesize new rows).
Trait Implementations§
Source§impl Clone for DisplayPack
impl Clone for DisplayPack
Source§fn clone(&self) -> DisplayPack
fn clone(&self) -> DisplayPack
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 DisplayPack
impl Debug for DisplayPack
Auto Trait Implementations§
impl Freeze for DisplayPack
impl RefUnwindSafe for DisplayPack
impl Send for DisplayPack
impl Sync for DisplayPack
impl Unpin for DisplayPack
impl UnsafeUnpin for DisplayPack
impl UnwindSafe for DisplayPack
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