pub struct GraphData {
pub nodes: Vec<GraphNode>,
pub edges: Vec<GraphEdge>,
pub clusters: Vec<GraphCluster>,
}Expand description
Complete graph data structure containing all nodes, edges, and clusters
Fields§
§nodes: Vec<GraphNode>All nodes in the graph (endpoints, services, workspaces)
edges: Vec<GraphEdge>All edges in the graph (dependencies, state transitions, service calls)
clusters: Vec<GraphCluster>Clusters for grouping related nodes (micro-mocks, workspaces)
Implementations§
Source§impl GraphData
impl GraphData
Sourcepub fn add_cluster(&mut self, cluster: GraphCluster)
pub fn add_cluster(&mut self, cluster: GraphCluster)
Add a cluster to the graph
Sourcepub fn edges_for_node(&self, node_id: &str) -> Vec<&GraphEdge>
pub fn edges_for_node(&self, node_id: &str) -> Vec<&GraphEdge>
Find all edges connected to a node
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphData
impl<'de> Deserialize<'de> for GraphData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphData
impl RefUnwindSafe for GraphData
impl Send for GraphData
impl Sync for GraphData
impl Unpin for GraphData
impl UnwindSafe for GraphData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more