pub enum TriggerV1 {
At {
machine: MachineKind,
in_states: Vec<String>,
time: String,
},
When {
machine: MachineKind,
in_states: Vec<String>,
condition: String,
},
OnTransition {
machine: MachineKind,
from: Vec<String>,
to: Vec<String>,
},
OnConfirmed {
step: String,
},
}Variants§
At
Fires once at time while the machine is in one of in.
When
Fires when condition becomes true while the machine is in in.
OnTransition
Fires on a transition into one of to (from one of from, if given).
OnConfirmed
Fires when an intent for step confirms.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TriggerV1
impl<'de> Deserialize<'de> for TriggerV1
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
impl Eq for TriggerV1
impl StructuralPartialEq for TriggerV1
Auto Trait Implementations§
impl Freeze for TriggerV1
impl RefUnwindSafe for TriggerV1
impl Send for TriggerV1
impl Sync for TriggerV1
impl Unpin for TriggerV1
impl UnsafeUnpin for TriggerV1
impl UnwindSafe for TriggerV1
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