pub struct TreeNode {
pub id: String,
pub title: String,
pub status: Status,
pub priority: u8,
pub has_verify: bool,
pub children: Vec<TreeNode>,
}Expand description
A node in the unit hierarchy tree, used by get_tree.
Fields§
§id: StringUnit ID.
title: StringUnit title.
status: StatusUnit status.
priority: u8Priority (0 = P0/highest, 4 = P4/lowest).
has_verify: boolWhether the unit has a verify command.
children: Vec<TreeNode>Child nodes (units whose parent field is this unit’s ID).
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 UnsafeUnpin 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