loopsmith-core 1.0.0

Config model and validation for loopsmith loops
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Section B — the manual work that must happen before automation is allowed.

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct WorkItem {
    pub step: String,
    /// Must be true before the loop is allowed to run. This encodes the
    /// corpus rule that you cannot automate a process you cannot describe.
    #[serde(default)]
    pub done: bool,
    #[serde(default)]
    pub evidence: Option<String>,
}