pub struct GitFileChange {
pub path: PathBuf,
pub kind: GitChangeKind,
pub staged: bool,
}Expand description
Represents a single file change detected in git.
Fields§
§path: PathBufRelative path of the changed file.
kind: GitChangeKindKind of change.
staged: boolWhether this is a staged change (vs working directory).
Trait Implementations§
Source§impl Clone for GitFileChange
impl Clone for GitFileChange
Source§fn clone(&self) -> GitFileChange
fn clone(&self) -> GitFileChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitFileChange
impl Debug for GitFileChange
Source§impl<'de> Deserialize<'de> for GitFileChange
impl<'de> Deserialize<'de> for GitFileChange
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
Auto Trait Implementations§
impl Freeze for GitFileChange
impl RefUnwindSafe for GitFileChange
impl Send for GitFileChange
impl Sync for GitFileChange
impl Unpin for GitFileChange
impl UnsafeUnpin for GitFileChange
impl UnwindSafe for GitFileChange
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