pub struct StatisticsSummary {Show 13 fields
pub total_games: u32,
pub games_won: u32,
pub win_rate: f64,
pub highest_score: u32,
pub average_score: f64,
pub total_moves: u32,
pub average_moves: f64,
pub total_play_time: u64,
pub average_duration: f64,
pub highest_tile: u32,
pub tile_distribution: HashMap<u32, u32>,
pub score_distribution: ScoreDistribution,
pub recent_games: Vec<GameSessionStats>,
}
Expand description
Overall statistics summary
Fields§
§total_games: u32
Total number of games played
games_won: u32
Total number of games won
win_rate: f64
Win rate percentage
highest_score: u32
Highest score ever achieved
average_score: f64
Average score across all games
total_moves: u32
Total moves across all games
average_moves: f64
Average moves per game
total_play_time: u64
Total play time in seconds
average_duration: f64
Average game duration
highest_tile: u32
Highest tile ever achieved
tile_distribution: HashMap<u32, u32>
Tile distribution (how many times each tile was achieved)
score_distribution: ScoreDistribution
Score distribution (ranges)
recent_games: Vec<GameSessionStats>
Recent games (last 10)
Trait Implementations§
Source§impl Clone for StatisticsSummary
impl Clone for StatisticsSummary
Source§fn clone(&self) -> StatisticsSummary
fn clone(&self) -> StatisticsSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StatisticsSummary
impl Debug for StatisticsSummary
Source§impl<'de> Deserialize<'de> for StatisticsSummary
impl<'de> Deserialize<'de> for StatisticsSummary
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 StatisticsSummary
impl RefUnwindSafe for StatisticsSummary
impl Send for StatisticsSummary
impl Sync for StatisticsSummary
impl Unpin for StatisticsSummary
impl UnwindSafe for StatisticsSummary
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