pub struct CommitDetails {
pub commit: Commit,
pub files_changed: Vec<PathBuf>,
pub insertions: usize,
pub deletions: usize,
}
Fields§
§commit: Commit
§files_changed: Vec<PathBuf>
§insertions: usize
§deletions: usize
Implementations§
Source§impl CommitDetails
impl CommitDetails
Sourcepub fn total_changes(&self) -> usize
pub fn total_changes(&self) -> usize
Get total changes (insertions + deletions)
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if any files were changed
Trait Implementations§
Source§impl Clone for CommitDetails
impl Clone for CommitDetails
Source§fn clone(&self) -> CommitDetails
fn clone(&self) -> CommitDetails
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 moreSource§impl Debug for CommitDetails
impl Debug for CommitDetails
Source§impl Display for CommitDetails
impl Display for CommitDetails
Source§impl PartialEq for CommitDetails
impl PartialEq for CommitDetails
impl Eq for CommitDetails
impl StructuralPartialEq for CommitDetails
Auto Trait Implementations§
impl Freeze for CommitDetails
impl RefUnwindSafe for CommitDetails
impl Send for CommitDetails
impl Sync for CommitDetails
impl Unpin for CommitDetails
impl UnwindSafe for CommitDetails
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