#[non_exhaustive]pub struct CleanEntry {
pub path: PathBuf,
pub is_dir: bool,
}Expand description
One path git clean would remove (-n, dry run) or removed (-f,
forced), from a Would remove <path> / Removing <path> output line.
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.path: PathBufThe path, decoded from git’s C-quoting (unquoted the same way this
crate unquotes any other git porcelain path) and stripped of the
directory-entry trailing / when is_dir is set.
is_dir: boolWhether this entry names a whole untracked directory (-d), from
git’s trailing / on directory entries, rather than a single file.
Trait Implementations§
Source§impl Clone for CleanEntry
impl Clone for CleanEntry
Source§fn clone(&self) -> CleanEntry
fn clone(&self) -> CleanEntry
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 CleanEntry
impl Debug for CleanEntry
impl Eq for CleanEntry
Source§impl PartialEq for CleanEntry
impl PartialEq for CleanEntry
impl StructuralPartialEq for CleanEntry
Auto Trait Implementations§
impl Freeze for CleanEntry
impl RefUnwindSafe for CleanEntry
impl Send for CleanEntry
impl Sync for CleanEntry
impl Unpin for CleanEntry
impl UnsafeUnpin for CleanEntry
impl UnwindSafe for CleanEntry
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