aboutsummaryrefslogtreecommitdiff
path: root/server/protocol/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-11-18 18:21:32 +0100
committermetamuffin <metamuffin@disroot.org>2024-11-18 18:22:17 +0100
commit9d9d4fa85f17c783c7460f61236e3e9e34f6411e (patch)
treef9eb2c15d30495cf4beaf72b105c1c78ce0baece /server/protocol/src
parentb1abfaff30c50493befc7947980626557c857c8e (diff)
downloadhurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar
hurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar.bz2
hurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar.zst
conditional document elements
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>,
+ },
}