pub trait StateTrait {
// Required methods
fn id(&self) -> &str;
fn state_type(&self) -> &StateType;
fn parent(&self) -> Option<&str>;
fn children(&self) -> &[String];
fn initial(&self) -> Option<&str>;
fn data(&self) -> Option<&Value>;
}Expand description
Trait for state objects in a state machine
Required Methods§
Sourcefn state_type(&self) -> &StateType
fn state_type(&self) -> &StateType
Get the state type