pub enum Clause {
Given {
events: Core,
actor: Option<Arc<str>>,
span: Span,
},
When {
actor: Option<Arc<str>>,
commands: Vec<Core>,
span: Span,
},
Stub {
atom: Effect,
params: Vec<VarId>,
value: Core,
span: Span,
},
Expect {
what: Expectation,
span: Span,
},
}Variants§
Given
given [Added(…)] by "ana" — the log the state is folded from.
When
when session("ana") sends Add(…), Toggle(…) — proposals through the real validate.
Stub
stub net.out(payments.example.com): Declined — §21.3 rules 2 and 3.
Fields
Expect
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnwindSafe for Clause
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