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 existing one-way-door consumers (state-machine queries like
has_blockers / clean_count) stay 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 has_blockers(&self, strict: bool) -> bool
pub fn has_blockers(&self, strict: bool) -> bool
Whether any entry is a blocker given the strict flag.
Sourcepub fn blockers(&self, strict: bool) -> Vec<&PreflightEntry>
pub fn blockers(&self, strict: bool) -> Vec<&PreflightEntry>
Entries that are blockers.
Trait Implementations§
Source§impl Debug for PreflightReport
impl Debug for PreflightReport
Source§impl Default for PreflightReport
impl Default for PreflightReport
Source§fn default() -> PreflightReport
fn default() -> PreflightReport
Auto Trait Implementations§
impl Freeze for PreflightReport
impl RefUnwindSafe for PreflightReport
impl Send for PreflightReport
impl Sync for PreflightReport
impl Unpin for PreflightReport
impl UnsafeUnpin for PreflightReport
impl UnwindSafe for PreflightReport
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.