pub struct FileDelta {
pub change: Change,
pub path: String,
pub from: String,
}Expand description
A change made to a given file in a commit
Fields§
§change: ChangeThe change type
path: StringThe current path of the file
from: StringThe previous path of the file if the change is a rename or copy, and an empty string otherwise
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDelta
impl RefUnwindSafe for FileDelta
impl Send for FileDelta
impl Sync for FileDelta
impl Unpin for FileDelta
impl UnwindSafe for FileDelta
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