pub struct Stats<'a> {
pub daily_rewards_claimed: Option<i64>,
pub items_collected: Option<i64>,
pub last_post_read_date: Option<Datetime>,
pub posts_read_today: Option<i64>,
pub posts_read_total: Option<i64>,
pub posts_viewed: Option<i64>,
pub shuffles_performed: Option<i64>,
pub specimens_collected: Option<i64>,
pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}Expand description
Game-specific statistics and metrics
Fields§
§daily_rewards_claimed: Option<i64>Total daily rewards claimed
items_collected: Option<i64>Total items collected
last_post_read_date: Option<Datetime>Date when posts read today was last updated (for daily reset tracking)
posts_read_today: Option<i64>Posts read today (resets daily)
posts_read_total: Option<i64>Total posts read (all time, cumulative)
posts_viewed: Option<i64>Total posts viewed
shuffles_performed: Option<i64>Total shuffles performed
specimens_collected: Option<i64>Total specimens collected
extra_data: Option<BTreeMap<SmolStr, Data<'a>>>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Stats<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Stats<'a>
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
Source§impl<'a> IntoStatic for Stats<'a>
impl<'a> IntoStatic for Stats<'a>
Source§impl<'a> LexiconSchema for Stats<'a>
impl<'a> LexiconSchema for Stats<'a>
Source§fn lexicon_doc() -> LexiconDoc<'static>
fn lexicon_doc() -> LexiconDoc<'static>
Generate the lexicon document for this type Read more
Source§fn validate(&self) -> Result<(), ConstraintError>
fn validate(&self) -> Result<(), ConstraintError>
Validate an instance against lexicon constraints Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether this type should be inlined vs referenced Read more
impl<'a> Eq for Stats<'a>
impl<'a> StructuralPartialEq for Stats<'a>
Auto Trait Implementations§
impl<'a> Freeze for Stats<'a>
impl<'a> RefUnwindSafe for Stats<'a>
impl<'a> Send for Stats<'a>
impl<'a> Sync for Stats<'a>
impl<'a> Unpin for Stats<'a>
impl<'a> UnsafeUnpin for Stats<'a>
impl<'a> UnwindSafe for Stats<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.