pub struct DiffSummary {
pub files_changed: usize,
pub lines_added: usize,
pub lines_removed: usize,
pub modules_touched: HashSet<String>,
pub sensitive_files: Vec<String>,
pub has_unsafe: bool,
pub has_conflicts: bool,
pub rename_count: usize,
pub has_migrations: bool,
pub has_config_changes: bool,
}Expand description
Summary of a git diff between two refs.
Fields§
§files_changed: usize§lines_added: usize§lines_removed: usize§modules_touched: HashSet<String>§sensitive_files: Vec<String>§has_unsafe: bool§has_conflicts: bool§rename_count: usizeNumber of renamed files (pure renames are lower risk).
has_migrations: boolWhether the diff touches migration-like files (schema changes, etc.).
has_config_changes: boolWhether the diff touches config files (YAML, TOML, JSON config).
Implementations§
Source§impl DiffSummary
impl DiffSummary
pub fn total_lines(&self) -> usize
Trait Implementations§
Source§impl Clone for DiffSummary
impl Clone for DiffSummary
Source§fn clone(&self) -> DiffSummary
fn clone(&self) -> DiffSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiffSummary
impl RefUnwindSafe for DiffSummary
impl Send for DiffSummary
impl Sync for DiffSummary
impl Unpin for DiffSummary
impl UnsafeUnpin for DiffSummary
impl UnwindSafe for DiffSummary
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