pub struct DiffEntry {
pub kind: DiffKind,
pub path: String,
pub original_path: Option<String>,
pub similarity: Option<u32>,
}Available on crate feature
parse only.Expand description
One parsed entry from git diff --name-status -z.
Fields§
§kind: DiffKindKind of change.
path: StringAffected path (post-rename, if applicable).
original_path: Option<String>Original path for renames/copies.
similarity: Option<u32>Similarity index for renames/copies (e.g. 100 means identical).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffEntry
impl<'de> Deserialize<'de> for DiffEntry
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
impl Eq for DiffEntry
impl StructuralPartialEq for DiffEntry
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