pub enum GateStatus {
Pass,
Warn,
Fail,
Skipped,
}Expand description
What a gate concluded on this run.
Four-valued rather than a boolean because audit’s verdict has a warn tier
(crates/cli/src/cli_report.rs maps it onto three conclusions) and because
a gate can stand down without passing. Widening a published boolean later
would retype a required field and bump every carrying envelope, so the width
is decided here.
Variants§
Pass
The gate ran and its condition did not hold.
Warn
The gate ran and reached a warn tier that does not fail the run. Only
audit-verdict can report this today.
Fail
The gate ran and its condition held.
Skipped
The gate could not judge this run and deliberately stood down: a
change-scoped baseline comparison, health --report-only, or a security
advisory shadowed by a configured gate. Distinct from pass, which
asserts the condition was evaluated and did not hold.
Trait Implementations§
Source§impl Clone for GateStatus
impl Clone for GateStatus
impl Copy for GateStatus
Source§impl Debug for GateStatus
impl Debug for GateStatus
impl Eq for GateStatus
Source§impl PartialEq for GateStatus
impl PartialEq for GateStatus
Source§impl Serialize for GateStatus
impl Serialize for GateStatus
impl StructuralPartialEq for GateStatus
Auto Trait Implementations§
impl Freeze for GateStatus
impl RefUnwindSafe for GateStatus
impl Send for GateStatus
impl Sync for GateStatus
impl Unpin for GateStatus
impl UnsafeUnpin for GateStatus
impl UnwindSafe for GateStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.