From 292f62ee6802146742ae65199abd91969e5f9a9f Mon Sep 17 00:00:00 2001 From: aurlic Date: Mon, 16 Dec 2024 15:53:00 +0100 Subject: [PATCH] Feat: Add optional banner field to QuestDocument struct --- src/models.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/models.rs b/src/models.rs index 5840294..64413f0 100644 --- a/src/models.rs +++ b/src/models.rs @@ -47,8 +47,19 @@ pub_struct!(Debug, Serialize, Deserialize; QuestDocument { expired: Option, experience: i64, start_time: i64, + banner: Option }); +#[derive(Debug, Serialize, Deserialize)] +pub struct Banner { + tag: String, + title: String, + description: String, + cta: String, + href: String, + image: String, +} + pub_struct!(Debug, Serialize, Deserialize; QuestInsertDocument { id: u32, name: String,