pub struct ChangedFile {
pub path: String,
pub before: Option<String>,
pub after: Option<String>,
pub added: Vec<LineRange>,
}Expand description
A file a commit changes.
Fields§
§path: StringThe file, relative to the repository, /-separated.
before: Option<String>The content hash at the parent ("": no file there); None when not
known (too large, not a regular file).
after: Option<String>The content hash at the commit, as ChangedFile::before.
added: Vec<LineRange>The lines the commit adds to it.
Trait Implementations§
Source§impl Clone for ChangedFile
impl Clone for ChangedFile
Source§impl Debug for ChangedFile
impl Debug for ChangedFile
Source§impl Default for ChangedFile
impl Default for ChangedFile
impl Eq for ChangedFile
Source§impl PartialEq for ChangedFile
impl PartialEq for ChangedFile
impl StructuralPartialEq for ChangedFile
Auto Trait Implementations§
impl Forget for ChangedFile
impl Freeze for ChangedFile
impl Move for ChangedFile
impl RefUnwindSafe for ChangedFile
impl Send for ChangedFile
impl Sync for ChangedFile
impl Unpin for ChangedFile
impl UnsafeUnpin for ChangedFile
impl UnwindSafe for ChangedFile
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