pub struct Check {
pub desc: String,
pub run: String,
pub cwd: Option<String>,
pub expect_exit: Option<i32>,
pub extra: Map<String, Value>,
}Expand description
An executable check: the general goal plus a flexible runnable form that
proves it. The goal (desc) is always communicated and the command (run)
is a free-form shell string; precision (cwd, expect_exit) is available
but not forced (owner decision 2026-07-23, plan-check-run-contract).
Fields§
§desc: StringThe general goal of the check — what it verifies. Always present, human- and LLM-readable.
run: StringA flexible shell command the supervisor executes (via sh -c).
cwd: Option<String>Optional working directory (repo-relative) to run run in; when absent
the check runs at the worktree root.
expect_exit: Option<i32>Optional expected exit code — the check passes iff the command exits with this code. Absent means the default: exit 0.
extra: Map<String, Value>Unrecognized keys, captured for the compatibility check.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Check
impl<'de> Deserialize<'de> for Check
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 Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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