pub struct DiffTriage {
pub files: usize,
pub hunks: Option<usize>,
pub net_lines: Option<i64>,
pub risk_class: RiskClass,
pub review_effort: ReviewEffort,
}Expand description
Stage 0 of the brief: triage facts derived purely from the diff size.
hunks and net_lines are populated when the caller supplies parsed diff
evidence. They remain absent when no diff is available.
Fields§
§files: usizeNumber of changed files in the audit scope.
hunks: Option<usize>Number of diff hunks, or None when no diff evidence was supplied.
net_lines: Option<i64>Net added-minus-removed lines, or None without diff evidence.
risk_class: RiskClassCoarse risk class derived from the change size.
review_effort: ReviewEffortSuggested reviewer effort derived from risk_class.
Trait Implementations§
Source§impl Clone for DiffTriage
impl Clone for DiffTriage
Source§impl Debug for DiffTriage
impl Debug for DiffTriage
Auto Trait Implementations§
impl Freeze for DiffTriage
impl RefUnwindSafe for DiffTriage
impl Send for DiffTriage
impl Sync for DiffTriage
impl Unpin for DiffTriage
impl UnsafeUnpin for DiffTriage
impl UnwindSafe for DiffTriage
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