pub struct DiagramModel {
pub nodes: Vec<DiagramNode>,
pub edges: Vec<DiagramEdge>,
pub flows: Vec<(String, Vec<String>)>,
}Expand description
Diagram model + Mermaid/SVG rendering live in the engine
(scc_engine::diagram) so every transport renders the same bytes.
This module re-exports the engine implementation; the CLI only parses
args and prints.
L1 architecture nodes plus capped edges, sorted for byte-determinism.
Fields§
§nodes: Vec<DiagramNode>§edges: Vec<DiagramEdge>§flows: Vec<(String, Vec<String>)>Flow name plus participant labels in step order.
Trait Implementations§
Source§impl Clone for DiagramModel
impl Clone for DiagramModel
Source§fn clone(&self) -> DiagramModel
fn clone(&self) -> DiagramModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiagramModel
impl Debug for DiagramModel
Source§impl<'de> Deserialize<'de> for DiagramModel
impl<'de> Deserialize<'de> for DiagramModel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagramModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagramModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DiagramModel
impl Serialize for DiagramModel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DiagramModel
impl RefUnwindSafe for DiagramModel
impl Send for DiagramModel
impl Sync for DiagramModel
impl Unpin for DiagramModel
impl UnsafeUnpin for DiagramModel
impl UnwindSafe for DiagramModel
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