feat!: Added several fields to Quest struct

- Added field public
- Added optional field available_on
- Added optional field deadline
- Updated tests and CLI to use these fields
This commit is contained in:
Alexey 2025-12-01 13:26:38 +03:00
commit 78da6dde05
4 changed files with 60 additions and 6 deletions

View file

@ -35,7 +35,10 @@ fn quest_one() {
reward: 100,
name: "Example easy quest".to_owned(),
description: "Answer this quest without any attachments or comments".to_owned(),
answer: "Accept the answer if it has no attachments and an empty comment".to_owned()
answer: "Accept the answer if it has no attachments and an empty comment".to_owned(),
public: false,
available_on: None,
deadline: None
};
assert_eq!(*quest, expected);

View file

@ -6,3 +6,4 @@ reward = 100
name = "Example easy quest"
description = "Answer this quest without any attachments or comments"
answer = "Accept the answer if it has no attachments and an empty comment"
public = false