From a5814a2a81c0ea7bcf6d56626ff7167af78d63a6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 6 Oct 2025 14:04:52 +0200 Subject: Collapse anywhere passive recipes --- server/protocol/src/book.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server/protocol/src') diff --git a/server/protocol/src/book.rs b/server/protocol/src/book.rs index 7c529f22..1654e014 100644 --- a/server/protocol/src/book.rs +++ b/server/protocol/src/book.rs @@ -69,8 +69,20 @@ pub struct DiagramEdge { pub src: usize, pub dst: usize, pub label: Option, + pub style: EdgeStyle, } +#[derive(Debug, Clone, Serialize, Deserialize)] +pub enum EdgeStyle { + Regular, + ProcessPassive, +} + +impl EdgeStyle { + pub fn is_regular(&self) -> bool { + matches!(self, Self::Regular) + } +} impl NodeStyle { pub fn is_procuct(&self) -> bool { matches!( -- cgit v1.2.3-70-g09d2