pub struct FileDiff {
pub path: PathBuf,
pub status: FileStatus,
pub hunks: Vec<Hunk>,
pub renamed_from: Option<PathBuf>,
pub similarity: Option<u8>,
}Fields§
§path: PathBuf§status: FileStatus§hunks: Vec<Hunk>§renamed_from: Option<PathBuf>A renamed (or copied) file: the path the content came from. path
is the new name and hunks the content diff against renamed_from
(none for a pure rename).
similarity: Option<u8>The rename’s similarity in percent (100 for a pure rename).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileDiff
impl<'de> Deserialize<'de> for FileDiff
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 FileDiff
impl StructuralPartialEq for FileDiff
Auto Trait Implementations§
impl Forget for FileDiff
impl Freeze for FileDiff
impl Move for FileDiff
impl RefUnwindSafe for FileDiff
impl Send for FileDiffwhere
RawVecInner: Send,
impl Sync for FileDiffwhere
RawVecInner: Sync,
impl Unpin for FileDiff
impl UnsafeUnpin for FileDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Hunk>: UnsafeUnpin,
impl UnwindSafe for FileDiffwhere
RawVecInner: UnwindSafe,
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