diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-11-18 18:21:32 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-11-18 18:22:17 +0100 |
| commit | 9d9d4fa85f17c783c7460f61236e3e9e34f6411e (patch) | |
| tree | f9eb2c15d30495cf4beaf72b105c1c78ce0baece /server/protocol | |
| parent | b1abfaff30c50493befc7947980626557c857c8e (diff) | |
| download | hurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar hurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar.bz2 hurrycurry-9d9d4fa85f17c783c7460f61236e3e9e34f6411e.tar.zst | |
conditional document elements
Diffstat (limited to 'server/protocol')
| -rw-r--r-- | server/protocol/src/lib.rs | 6 |
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>, + }, } |