diff options
Diffstat (limited to 'server/protocol/src')
-rw-r--r-- | server/protocol/src/book.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/server/protocol/src/book.rs b/server/protocol/src/book.rs index 33b5654e..02dfa425 100644 --- a/server/protocol/src/book.rs +++ b/server/protocol/src/book.rs @@ -54,8 +54,16 @@ pub struct DiagramNode { #[bincode(with_serde)] pub position: Vec2, pub label: Message, - pub color: Option<String>, - pub shape: Option<String>, + pub style: NodeStyle, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +pub enum NodeStyle { + IntermediateProduct, + FinalProduct, + ProcessActive, + ProcessPassive, + ProcessInstant, } #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] |