pub struct WorkingTreeStatus {
pub branch: Option<String>,
pub new: Vec<PathBuf>,
pub modified: Vec<PathBuf>,
pub deleted: Vec<PathBuf>,
}Expand description
The difference between the working tree and a reference manifest (HEAD).
Fields§
§branch: Option<String>Branch HEAD is on, if attached.
new: Vec<PathBuf>Files present in the working tree but not in the manifest.
modified: Vec<PathBuf>Files present in both but with different content.
deleted: Vec<PathBuf>Files in the manifest but missing from the working tree.
Implementations§
Trait Implementations§
Source§impl Clone for WorkingTreeStatus
impl Clone for WorkingTreeStatus
Source§fn clone(&self) -> WorkingTreeStatus
fn clone(&self) -> WorkingTreeStatus
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 WorkingTreeStatus
impl Debug for WorkingTreeStatus
Source§impl Default for WorkingTreeStatus
impl Default for WorkingTreeStatus
Source§fn default() -> WorkingTreeStatus
fn default() -> WorkingTreeStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkingTreeStatus
impl PartialEq for WorkingTreeStatus
impl Eq for WorkingTreeStatus
impl StructuralPartialEq for WorkingTreeStatus
Auto Trait Implementations§
impl Freeze for WorkingTreeStatus
impl RefUnwindSafe for WorkingTreeStatus
impl Send for WorkingTreeStatus
impl Sync for WorkingTreeStatus
impl Unpin for WorkingTreeStatus
impl UnsafeUnpin for WorkingTreeStatus
impl UnwindSafe for WorkingTreeStatus
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