From 9d9d4fa85f17c783c7460f61236e3e9e34f6411e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 18 Nov 2024 18:21:32 +0100 Subject: conditional document elements --- server/protocol/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/protocol') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index dd773a3d..ca6e7c8c 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -381,4 +381,10 @@ pub enum DocumentElement { #[serde(default)] bold: bool, }, + /// Document part that is only shown conditionally. Used for image attribution + Conditional { + cond: String, + value: bool, + e: Box, + }, } -- cgit v1.2.3-70-g09d2