pub struct FlatState {
pub id: CompactString,
pub kind: StateKind,
pub parent: Option<CompactString>,
pub initial: bool,
pub depth: u32,
}Expand description
A flat state representation for frontend rendering.
Matches the shape expected by statechart visualization components
(e.g. scxmlTypes.ts::flattenMachine()).
Fields§
§id: CompactStringState identifier.
kind: StateKindWhat kind of state this is.
parent: Option<CompactString>Parent state id, if nested.
initial: boolWhether this is the chart’s initial state.
depth: u32Nesting depth (0 = top level).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlatState
impl<'de> Deserialize<'de> for FlatState
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 FlatState
impl RefUnwindSafe for FlatState
impl Send for FlatState
impl Sync for FlatState
impl Unpin for FlatState
impl UnsafeUnpin for FlatState
impl UnwindSafe for FlatState
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