pub struct Gate {
pub id: String,
pub label: String,
pub command: String,
pub category: DimensionCategory,
pub timeout_secs: Option<u64>,
pub allow_skip: bool,
}Expand description
A single verification gate.
Fields§
§id: StringUnique identifier, e.g. “fmt”, “clippy”, “unit-tests”.
label: StringHuman-readable label.
command: StringShell command to execute.
category: DimensionCategoryWhether this gate is required, scored, or advisory.
timeout_secs: Option<u64>Timeout in seconds. None means use default (300s).
allow_skip: boolWhether this gate may be skipped. Required gates default to false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gate
impl<'de> Deserialize<'de> for Gate
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
Auto Trait Implementations§
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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