pub struct StateSpec {
pub states: Vec<StateNodeSpec>,
pub transitions: Vec<TransitionSpec>,
pub initial: Option<String>,
pub main_path: Vec<String>,
pub orientation: DiagramOrientation,
pub spacing: DiagramSpacing,
}Expand description
A state diagram: states joined by transitions, laid out like a flow chart.
Fields§
§states: Vec<StateNodeSpec>§transitions: Vec<TransitionSpec>§initial: Option<String>The id of the state the machine starts in; it gets the initial dot and its arrow.
main_path: Vec<String>The usual way through the states, as ids joined by transitions: kept in line and drawn stronger.
orientation: DiagramOrientation§spacing: DiagramSpacingTrait Implementations§
Source§impl<'de> Deserialize<'de> for StateSpec
impl<'de> Deserialize<'de> for StateSpec
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 StateSpec
impl RefUnwindSafe for StateSpec
impl Send for StateSpec
impl Sync for StateSpec
impl Unpin for StateSpec
impl UnsafeUnpin for StateSpec
impl UnwindSafe for StateSpec
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