pub enum Criterion {
PathExists {
path: String,
description: String,
},
PathAbsent {
absent: String,
description: String,
},
FileContains {
file: String,
contains: String,
description: String,
},
CommandRun {
run: String,
description: String,
},
AgentJudgement {
description: String,
},
HumanGate {
description: String,
},
}Expand description
一条判据:谁判、怎么判、说明。
值对象,不可变。rule 四种判法各一个变体;agent / human 只有说明。
线上形状不变——进出定义文件时仍写成 path / absent / file+contains / run 字段。
Variants§
Implementations§
Trait Implementations§
impl Eq for Criterion
impl StructuralPartialEq for Criterion
Auto Trait Implementations§
impl Freeze for Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.