pub struct StatusEntry {
pub index: StatusKind,
pub worktree: StatusKind,
pub path: String,
pub original_path: Option<String>,
}Available on crate feature
parse only.Expand description
A single parsed entry from git status --porcelain=v1 -z.
Fields§
§index: StatusKindStatus of the index (the “X” field of XY).
worktree: StatusKindStatus of the working tree (the “Y” field of XY).
path: StringAffected path (post-rename, if applicable).
original_path: Option<String>Original path for renames/copies, if present.
Trait Implementations§
Source§impl Clone for StatusEntry
impl Clone for StatusEntry
Source§fn clone(&self) -> StatusEntry
fn clone(&self) -> StatusEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatusEntry
impl Debug for StatusEntry
Source§impl<'de> Deserialize<'de> for StatusEntry
impl<'de> Deserialize<'de> for StatusEntry
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
Source§impl PartialEq for StatusEntry
impl PartialEq for StatusEntry
Source§fn eq(&self, other: &StatusEntry) -> bool
fn eq(&self, other: &StatusEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StatusEntry
impl Serialize for StatusEntry
impl Eq for StatusEntry
impl StructuralPartialEq for StatusEntry
Auto Trait Implementations§
impl Freeze for StatusEntry
impl RefUnwindSafe for StatusEntry
impl Send for StatusEntry
impl Sync for StatusEntry
impl Unpin for StatusEntry
impl UnsafeUnpin for StatusEntry
impl UnwindSafe for StatusEntry
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