pub struct TreeNode {
pub id: String,
pub label: String,
pub icon: Option<String>,
pub children: Vec<TreeNode>,
pub color: Option<Color>,
pub disabled: bool,
}Expand description
A node in the tree.
Fields§
§id: StringUnique identifier for this node.
label: StringDisplay label.
icon: Option<String>Optional icon/prefix.
children: Vec<TreeNode>Child nodes.
color: Option<Color>Custom color for this node.
disabled: boolWhether this node is disabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnwindSafe for TreeNode
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