pub struct Chart {
pub name: Option<String>,
pub datamodel: String,
pub datamodel_explicit: bool,
pub binding: Binding,
pub binding_explicit: bool,
pub initial: Vec<String>,
pub data: Vec<Data>,
pub script: Option<Script>,
pub states: Vec<State>,
pub extensions: Vec<Extension>,
pub span: Span,
}Expand description
The root of a chart: the <scxml> element.
Fields§
§name: Option<String>The name attribute.
datamodel: StringThe datamodel name; "null" when the document names none.
datamodel_explicit: boolWhether the document stated the datamodel attribute explicitly.
binding: BindingBinding mode.
binding_explicit: boolWhether the document stated the binding attribute explicitly.
initial: Vec<String>The initial attribute: state identifiers, possibly empty.
data: Vec<Data>The top-level <datamodel> block.
script: Option<Script>The optional top-level <script>.
states: Vec<State>Child states in document order.
extensions: Vec<Extension>Extension attributes and elements on <scxml>.
span: SpanSource location.
Trait Implementations§
impl Eq for Chart
impl StructuralPartialEq for Chart
Auto Trait Implementations§
impl Forget for Chart
impl Freeze for Chart
impl Move for Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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