pub struct DependencyNode {
pub name: String,
pub children: Vec<DependencyNode>,
pub cached: bool,
pub scope: Option<String>,
pub note: Option<String>,
pub cycle: bool,
}Expand description
A single dependency node in the tree.
Fields§
§name: StringDisplay name of the dependency.
children: Vec<DependencyNode>Child dependencies.
cached: boolWhether the dependency is cached for the request.
scope: Option<String>Optional scope label (e.g., “request”, “function”).
note: Option<String>Optional note or detail.
cycle: boolWhether this node represents a cycle edge.
Implementations§
Source§impl DependencyNode
impl DependencyNode
Sourcepub fn child(self, child: DependencyNode) -> Self
pub fn child(self, child: DependencyNode) -> Self
Add a child dependency.
Sourcepub fn children(self, children: Vec<DependencyNode>) -> Self
pub fn children(self, children: Vec<DependencyNode>) -> Self
Replace children for the node.
Trait Implementations§
Source§impl Clone for DependencyNode
impl Clone for DependencyNode
Source§fn clone(&self) -> DependencyNode
fn clone(&self) -> DependencyNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DependencyNode
impl RefUnwindSafe for DependencyNode
impl Send for DependencyNode
impl Sync for DependencyNode
impl Unpin for DependencyNode
impl UnsafeUnpin for DependencyNode
impl UnwindSafe for DependencyNode
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