pub struct Change {
pub path: String,
pub from: Option<String>,
pub kind: ChangeKind,
pub old_mode: Option<String>,
pub new_mode: Option<String>,
pub binary: bool,
}Expand description
One file a patch touched.
Fields§
§path: StringThe path after the change. For a deletion, the path that is gone.
from: Option<String>The path before it, on a rename.
kind: ChangeKindWhat happened.
old_mode: Option<String>The file mode before, where the patch stated one.
new_mode: Option<String>The mode after.
binary: boolWhether the change was binary, and so shown only as a summary.
Implementations§
Source§impl Change
impl Change
Trait Implementations§
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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