Enum git_checks_core::StatusChange
source · pub enum StatusChange {
Added,
Copied(u8),
Deleted,
Modified(Option<u8>),
Renamed(u8),
TypeChanged,
Unmerged,
Unknown,
}
Expand description
Ways a file can be changed in a commit.
Variants§
Added
The file was added in this commit.
Copied(u8)
The file was copied in this commit with the given similarity index.
Deleted
The file was deleted in this commit.
Modified(Option<u8>)
The file was copied in this commit with an optional similarity index.
Renamed(u8)
The file was renamed in this commit with the given similarity index.
TypeChanged
The path changed type (types include directory, symlinks, and files).
Unmerged
The file is unmerged in the working tree.
Unknown
Git doesn’t know what’s going on.
Trait Implementations§
source§impl Clone for StatusChange
impl Clone for StatusChange
source§fn clone(&self) -> StatusChange
fn clone(&self) -> StatusChange
Returns a copy 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 StatusChange
impl Debug for StatusChange
source§impl From<char> for StatusChange
impl From<char> for StatusChange
source§impl PartialEq for StatusChange
impl PartialEq for StatusChange
source§fn eq(&self, other: &StatusChange) -> bool
fn eq(&self, other: &StatusChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StatusChange
impl Eq for StatusChange
impl StructuralPartialEq for StatusChange
Auto Trait Implementations§
impl Freeze for StatusChange
impl RefUnwindSafe for StatusChange
impl Send for StatusChange
impl Sync for StatusChange
impl Unpin for StatusChange
impl UnwindSafe for StatusChange
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