pub struct Node {
pub id: NodeId,
pub type_name: String,
pub name: String,
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub props: Props,
pub script: Option<ScriptRef>,
}Expand description
A node instance within a NodeTree.
Contains pure state data (identifiers, properties, and tree links). Dynamic behaviors
are handled externally by crate::NodeTypeRegistry and crate::LifecycleSink.
The enclosing NodeTree maintains structural invariants (such as
parent-child consistency).
Fields§
§id: NodeIdUnique identifier of this node.
type_name: StringRegistered node type name (e.g. Node2D, Sprite2D).
name: StringDisplay name shown in editor and diagnostics.
parent: Option<NodeId>Optional identifier of the parent node.
children: Vec<NodeId>Ordered list of child node identifiers.
props: PropsProperty map containing scalar, vector, and color attributes.
script: Option<ScriptRef>Optional attached Python script reference.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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