grip/overall_stats.rs
1// Copyright 2026 Umberto Gotti <umberto.gotti@umbertogotti.dev>
2// Licensed under the MIT License
3// SPDX-License-Identifier: MIT
4
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct OverallStats {
9 pub grip_score: u32,
10 pub public_items: usize,
11 pub total_functions: usize,
12 pub pure_functions: usize,
13 pub pure_ratio: f64,
14 pub public_ratio: f64,
15 pub inherent_methods: usize,
16 pub local_trait_methods: usize,
17 pub trait_ratio: f64,
18 pub avg_contribution: f64,
19 pub clean_fn_ratio: f64,
20}