pub struct PreflightReport {
pub entries: Vec<PreflightEntry>,
pub warnings: Vec<String>,
pub blockers: Vec<String>,
}Expand description
Aggregated results for all one-way-door publishers.
entries carries one row per checked publisher (cargo / chocolatey /
winget / aur). warnings and blockers are free-form, publisher-agnostic
messages produced by the release-resilience preflight extension: rollback
token scope checks and per-publisher Publisher::preflight() hook
results. The two channels are kept separate from entries so that
the report-only publisher-state channel (queried via clean_count)
stays focused on publisher state, while the
CLI’s operator-facing output can still surface every warning and blocker
the preflight pipeline produced.
Fields§
§entries: Vec<PreflightEntry>§warnings: Vec<String>Non-blocking concerns surfaced during preflight (missing rollback
scope in default mode, Publisher::preflight() returning Warning).
blockers: Vec<String>Hard blockers surfaced during preflight (missing rollback scope in
--strict mode, Publisher::preflight() returning Blocker).
Implementations§
Source§impl PreflightReport
impl PreflightReport
pub fn new() -> Self
pub fn push(&mut self, entry: PreflightEntry)
Sourcepub fn clean_count(&self) -> usize
pub fn clean_count(&self) -> usize
Entries whose state is Clean.
Sourcepub fn entry_rows(&self) -> Vec<(RowKind, String)>
pub fn entry_rows(&self) -> Vec<(RowKind, String)>
One (kind, text) row per entry, ready for StageLogger dispatch.
Each text is the subject {publisher} {package}@{version}
left-aligned and padded to the width of the widest subject present,
followed by two spaces and PublisherState::row_summary, so the
summaries line up in a column across every row.
Sourcepub fn emit(&self, log: &StageLogger)
pub fn emit(&self, log: &StageLogger)
Render this report through log, one StageLogger call per row.
Publisher entries route through PublisherState::row_kind
(✓/•); free-form warnings and blockers from the
release-resilience preflight extension route through the logger’s
own Warning / Error labels.