pub struct CommitDiff {
pub from_hash: String,
pub to_hash: String,
pub files: Vec<FileDiff>,
pub stats: DiffStats,
}Expand description
Diff result between two commits.
Fields§
§from_hash: StringHex hash of the “from” commit.
to_hash: StringHex hash of the “to” commit.
files: Vec<FileDiff>Per-file changes.
stats: DiffStatsAggregate statistics.
Trait Implementations§
Source§impl Clone for CommitDiff
impl Clone for CommitDiff
Source§fn clone(&self) -> CommitDiff
fn clone(&self) -> CommitDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitDiff
impl Debug for CommitDiff
Source§impl<'de> Deserialize<'de> for CommitDiff
impl<'de> Deserialize<'de> for CommitDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitDiff
impl RefUnwindSafe for CommitDiff
impl Send for CommitDiff
impl Sync for CommitDiff
impl Unpin for CommitDiff
impl UnsafeUnpin for CommitDiff
impl UnwindSafe for CommitDiff
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