pub struct Entry {
pub rela_path: BString,
pub status: Status,
pub property: Option<Property>,
pub disk_kind: Option<Kind>,
pub index_kind: Option<Kind>,
pub pathspec_match: Option<PathspecMatch>,
}
Expand description
Just like EntryRef
, but with all fields owned (and thus without a lifetime to consider).
Fields§
§rela_path: BString
See EntryRef::rela_path for details.
status: Status
The status of entry, most closely related to what we know from git status
, but not the same.
property: Option<Property>
Additional flags that further clarify properties of the entry.
disk_kind: Option<Kind>
Further specify what the entry is on disk, similar to a file mode.
index_kind: Option<Kind>
The kind of entry according to the index, if tracked. Usually the same as disk_kind
.
pathspec_match: Option<PathspecMatch>
Indicate how the pathspec matches the entry. See more in EntryRef::pathspec_match
.
Implementations§
Trait Implementations§
source§impl Ord for Entry
impl Ord for Entry
source§impl PartialEq for Entry
impl PartialEq for Entry
source§impl PartialOrd for Entry
impl PartialOrd for Entry
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)