pub struct StateNode {Show 17 fields
pub ty: Option<String>,
pub esvs: Option<BTreeMap<String, EsvDecl>>,
pub entry: Option<Value>,
pub exit: Option<Value>,
pub initial: Option<InitialTransition>,
pub states: Option<BTreeMap<String, StateNode>>,
pub regions: Option<Vec<Region>>,
pub on_events: Option<BTreeMap<String, TransitionOrList>>,
pub after: Option<Vec<AfterTimer>>,
pub defer: Option<Vec<String>>,
pub history: Option<String>,
pub choice: Option<Vec<ChoiceBranch>>,
pub meta: Option<Value>,
pub submachine: Option<String>,
pub with: Option<BTreeMap<String, String>>,
pub is_sm_boundary: bool,
pub sm_with: BTreeMap<String, String>,
}Fields§
§ty: Option<String>§esvs: Option<BTreeMap<String, EsvDecl>>§entry: Option<Value>§exit: Option<Value>§initial: Option<InitialTransition>§states: Option<BTreeMap<String, StateNode>>§regions: Option<Vec<Region>>§on_events: Option<BTreeMap<String, TransitionOrList>>§after: Option<Vec<AfterTimer>>§defer: Option<Vec<String>>§history: Option<String>§choice: Option<Vec<ChoiceBranch>>§meta: Option<Value>meta: opaque state annotations for host layers (SPEC §4.5). Purely
informative — no effect on dispatch/validation/snapshots.
submachine: Option<String>submachine: <id> inlines another definition synchronously (SPEC §5.6.1).
with: Option<BTreeMap<String, String>>with: { <externalEsv>: <CEL> } seeds the submachine’s external esvs.
is_sm_boundary: boolEngine-set: this node is the inlined top of a submachine (esv-scope
boundary). Never appears in YAML.
sm_with: BTreeMap<String, String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateNode
impl<'de> Deserialize<'de> for StateNode
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 StateNode
impl RefUnwindSafe for StateNode
impl Send for StateNode
impl Sync for StateNode
impl Unpin for StateNode
impl UnsafeUnpin for StateNode
impl UnwindSafe for StateNode
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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