pub enum EdgeCondition {
Always,
Conditional(String),
StateCondition {
key: String,
expected_value: Value,
},
}Expand description
Condition that must be met for an edge to be traversed
Variants§
Always
Always traverse the edge
Conditional(String)
Traverse if the condition function returns true
StateCondition
Traverse if the state contains a specific value
Trait Implementations§
Source§impl Clone for EdgeCondition
impl Clone for EdgeCondition
Source§fn clone(&self) -> EdgeCondition
fn clone(&self) -> EdgeCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeCondition
impl Debug for EdgeCondition
Source§impl<'de> Deserialize<'de> for EdgeCondition
impl<'de> Deserialize<'de> for EdgeCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EdgeCondition
impl RefUnwindSafe for EdgeCondition
impl Send for EdgeCondition
impl Sync for EdgeCondition
impl Unpin for EdgeCondition
impl UnwindSafe for EdgeCondition
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