#[non_exhaustive]pub struct StatusEntry {
pub code: String,
pub path: String,
pub orig_path: Option<String>,
}Expand description
One entry from git status --porcelain=v1 -z (XY <path>, NUL-delimited).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: StringTwo-character status code, e.g. " M", "??", "A ", "R ".
path: StringPath the status applies to (the new path for a rename/copy). Raw bytes
from -z — no C-quoting/escaping to undo, even for paths with spaces.
orig_path: Option<String>For a rename/copy, the original path; None otherwise.
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 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 ==.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