Skip to main content

grip/
grip_report.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
7use crate::function_info::FunctionInfo;
8use crate::module_stats::ModuleStats;
9use crate::offender::Offender;
10use crate::overall_stats::OverallStats;
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct GripReport {
14    pub version: String,
15    pub target: String,
16    pub overall: OverallStats,
17    pub modules: Vec<ModuleStats>,
18    pub offenders: Vec<Offender>,
19    pub offender_threshold: u32,
20    pub functions: Vec<FunctionInfo>,
21}