pub struct GraphNode {
pub id: String,
pub type_name: String,
pub lifetime: String,
pub is_trait: bool,
pub dependencies: Vec<String>,
pub metadata: HashMap<String, String>,
pub position: Option<NodePosition>,
}Expand description
A node in the dependency graph representing a service or trait registration.
Contains metadata about the service including its type, lifetime, dependencies, and registration details.
Fields§
§id: StringUnique identifier for this node
type_name: StringDisplay name of the service type
lifetime: StringService lifetime (Singleton, Scoped, Transient)
is_trait: boolWhether this is a trait registration
dependencies: Vec<String>List of dependency type names this service requires
metadata: HashMap<String, String>Additional metadata about the service
position: Option<NodePosition>Visual positioning hints for UI (optional)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnwindSafe for GraphNode
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