pub struct GateOutcome {
pub violations: Vec<GateViolation>,
pub withheld: Vec<Withheld>,
pub zero_match: Vec<String>,
}Expand description
⟨0.24⟩ What gate returns: the violations it is SURE of, and the (rule, function) pairs it
WITHHELD. Both halves travel, because the verdict is both (SPEC §3.1).
Fields§
§violations: Vec<GateViolation>Sorted by (rule, detail).
withheld: Vec<Withheld>Sorted by (rule, func). Empty on every policy whose filters the signature can answer.
zero_match: Vec<String>⟨0.27⟩ SPEC §4 — the RAW TEXT of every rule whose SCOPE bound no function, sorted. A rule that bound nothing was evaluated and matched nothing, so it cannot have caught anything; scoring it as satisfied makes a one-character typo in a layer name a permanently green gate. This is a DISCLOSURE beside the verdict, never a new verdict: the caller prints it and MUST NOT let it change the exit code (a zero-match rule is legitimate when one policy is shared across repos).
Trait Implementations§
Source§impl Debug for GateOutcome
impl Debug for GateOutcome
Source§impl Default for GateOutcome
impl Default for GateOutcome
Source§fn default() -> GateOutcome
fn default() -> GateOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GateOutcome
impl RefUnwindSafe for GateOutcome
impl Send for GateOutcome
impl Sync for GateOutcome
impl Unpin for GateOutcome
impl UnsafeUnpin for GateOutcome
impl UnwindSafe for GateOutcome
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