pub struct RoleNode {
pub role: Role,
pub children: Vec<RoleNode>,
pub depth: usize,
pub descendant_count: usize,
}Expand description
Represents a single node in the role hierarchy tree.
Each node contains a role and its direct children, along with structural information like depth in the hierarchy.
Fields§
§role: RoleThe role at this node
children: Vec<RoleNode>Direct child roles
depth: usizeDepth in the hierarchy (root = 0)
descendant_count: usizeNumber of descendants (including indirect children)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoleNode
impl !RefUnwindSafe for RoleNode
impl Send for RoleNode
impl Sync for RoleNode
impl Unpin for RoleNode
impl !UnwindSafe for RoleNode
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