Skip to content

Commit

Permalink
Merge pull request #357 from aurlic/fix-#348
Browse files Browse the repository at this point in the history
Feat: Add optional banner field to QuestDocument struct
  • Loading branch information
Marchand-Nicolas authored Dec 16, 2024
2 parents 2089420 + 292f62e commit 6d4e36c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,19 @@ pub_struct!(Debug, Serialize, Deserialize; QuestDocument {
expired: Option<bool>,
experience: i64,
start_time: i64,
banner: Option<Banner>
});

#[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,
Expand Down

0 comments on commit 6d4e36c

Please sign in to comment.