loopsmith-core 0.2.0

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

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[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>,
}