pub struct GateSpec {
pub id: String,
pub role: String,
pub on: GateOn,
pub gate: GateKind,
pub on_fail: GateOnFail,
pub blocks_role: Option<String>,
pub max_retries: u32,
pub artifact_kind: Option<String>,
pub require_explicit_verdict: bool,
}Expand description
One gate node in a Workflow definition.
Fields§
§id: String§role: StringRole whose completion (or start) triggers this gate.
on: GateOn§gate: GateKind§on_fail: GateOnFail§blocks_role: Option<String>Downstream role blocked until this gate passes.
max_retries: u32Max retries before escalate (default 1).
artifact_kind: Option<String>Optional artifact type this gate produces/consumes (e.g. findings).
require_explicit_verdict: boolRequire a standalone first-line PASS/APPROVE/BLOCK/FAIL verdict from a successfully completed role. When enabled, missing or malformed verdicts fail closed instead of inheriting legacy pass-on-success behavior.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GateSpec
impl<'de> Deserialize<'de> for GateSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GateSpec
impl StructuralPartialEq for GateSpec
Auto Trait Implementations§
impl Freeze for GateSpec
impl RefUnwindSafe for GateSpec
impl Send for GateSpec
impl Sync for GateSpec
impl Unpin for GateSpec
impl UnsafeUnpin for GateSpec
impl UnwindSafe for GateSpec
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