pub struct QuestState {
pub key: String,
pub title: String,
pub description: String,
pub kind: String,
pub target: f64,
pub progress: f64,
pub points: f64,
pub completed: bool,
pub claimed: bool,
}Expand description
A quest and one address’s progress against it.
Fields§
§key: StringStable machine key.
title: StringDisplay title.
description: StringDisplay description.
kind: StringQuest cadence, e.g. daily or oneoff.
target: f64Value that completes the quest.
progress: f64Current progress, clamped to target.
points: f64Points awarded on completion.
completed: booltrue once progress >= target.
claimed: booltrue once granted. Granted automatically by the indexer — there is no
claim call on this public surface.
Trait Implementations§
Source§impl Clone for QuestState
impl Clone for QuestState
Source§impl Debug for QuestState
impl Debug for QuestState
Source§impl<'de> Deserialize<'de> for QuestState
impl<'de> Deserialize<'de> for QuestState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QuestState
impl RefUnwindSafe for QuestState
impl Send for QuestState
impl Sync for QuestState
impl Unpin for QuestState
impl UnsafeUnpin for QuestState
impl UnwindSafe for QuestState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more