pub struct ReportDeltaContext {
pub delta_code_added: i64,
pub delta_code_removed: i64,
pub delta_unmodified_lines: i64,
pub delta_files_added: usize,
pub delta_files_removed: usize,
pub delta_files_modified: usize,
pub delta_files_unchanged: usize,
pub prev_code_lines: u64,
pub prev_scan_count: usize,
pub prev_scan_label: String,
pub prev_run_id: Option<String>,
pub current_run_id: Option<String>,
}Expand description
Optional delta context for embedding a “Changes vs. Previous Scan” panel
in the HTML report. Pass None to omit the panel (CLI, sub-reports).
Fields§
§delta_code_added: i64Net code lines added (new + grown files).
delta_code_removed: i64Net code lines removed (deleted + shrunk files).
delta_unmodified_lines: i64Code lines present in both scans without change.
delta_files_added: usizeNumber of files added since the previous scan.
delta_files_removed: usizeNumber of files removed since the previous scan.
delta_files_modified: usizeNumber of files modified since the previous scan.
delta_files_unchanged: usizeNumber of files unchanged since the previous scan.
prev_code_lines: u64Code lines in the previous scan (for the “Code before: X” display).
prev_scan_count: usizeTotal number of scans on record for this project (including current).
prev_scan_label: StringHuman-readable label for the previous scan (timestamp or run label).
prev_run_id: Option<String>Run ID of the previous scan, used to generate navigation links.
current_run_id: Option<String>Run ID of the current scan, used to generate the compare-scans link.