pub struct VisualNode {
pub id: String,
pub node_type: String,
pub position_x: f64,
pub position_y: f64,
pub width: f64,
pub height: f64,
pub label: String,
pub style: HashMap<String, Value>,
pub data: HashMap<String, Value>,
}Expand description
Visual representation of a state node
Fields§
§id: StringUnique node identifier (typically matches state name)
node_type: StringNode type: “state”, “initial”, “sub-scenario”, “condition”
position_x: f64X position in pixels
position_y: f64Y position in pixels
width: f64Node width in pixels
height: f64Node height in pixels
label: StringNode label/text
style: HashMap<String, Value>Additional visual properties
data: HashMap<String, Value>Node data (custom properties)
Trait Implementations§
Source§impl Clone for VisualNode
impl Clone for VisualNode
Source§fn clone(&self) -> VisualNode
fn clone(&self) -> VisualNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisualNode
impl Debug for VisualNode
Source§impl<'de> Deserialize<'de> for VisualNode
impl<'de> Deserialize<'de> for VisualNode
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 VisualNode
impl RefUnwindSafe for VisualNode
impl Send for VisualNode
impl Sync for VisualNode
impl Unpin for VisualNode
impl UnsafeUnpin for VisualNode
impl UnwindSafe for VisualNode
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