pub struct DiffEntry {
pub path: String,
pub status: String,
pub added: usize,
pub removed: usize,
pub hunk: String,
}Expand description
One changed path in the diff.
Fields§
§path: String§status: Stringcreated | modified | deleted | binary | symlink
added: usize§removed: usize§hunk: StringUnified-diff text (empty for symlink/binary, which carry a note instead).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffEntry
impl RefUnwindSafe for DiffEntry
impl Send for DiffEntry
impl Sync for DiffEntry
impl Unpin for DiffEntry
impl UnsafeUnpin for DiffEntry
impl UnwindSafe for DiffEntry
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