Enum Pred
pub enum Pred {
Always,
IsTrue(String),
IsSet(String),
Eq(String, Value),
Captured(Vec<String>),
CalledOk(String),
Done(String),
All(Vec<Pred>),
Any(Vec<Pred>),
Not(Box<Pred>),
}Expand description
A serializable predicate atom — the closed set of guard primitives.
Variants§
Always
Always true.
IsTrue(String)
State key holds boolean true.
IsSet(String)
State key is present.
Eq(String, Value)
State key equals the given JSON value.
Captured(Vec<String>)
All of the given state keys are present (e.g. extracted slots).
CalledOk(String)
The named tool has completed successfully at least once.
Done(String)
The named step is done.
All(Vec<Pred>)
Conjunction.
Any(Vec<Pred>)
Disjunction.
Not(Box<Pred>)
Negation.
Trait Implementations§
§impl<'de> Deserialize<'de> for Pred
impl<'de> Deserialize<'de> for Pred
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pred, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pred, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Pred
impl Serialize for Pred
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Pred
Auto Trait Implementations§
impl Freeze for Pred
impl RefUnwindSafe for Pred
impl Send for Pred
impl Sync for Pred
impl Unpin for Pred
impl UnwindSafe for Pred
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