grip/module_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 ModuleStats {
9 pub path: String,
10 pub grip_score: u32,
11 pub pure_ratio: f64,
12 pub public_items: usize,
13 pub total_functions: usize,
14 pub pure_functions: usize,
15 pub public_ratio: f64,
16 pub inherent_methods: usize,
17 pub local_trait_methods: usize,
18 pub trait_ratio: f64,
19}