summaryrefslogtreecommitdiff
path: root/server/protocol/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/protocol/src')
-rw-r--r--server/protocol/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
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<DocumentElement>,
+ },
}