pub struct FileEntry {
pub file: FileSides,
pub status: FileStatus,
pub tags: Vec<String>,
}Expand description
One changed file, as its manifest entry describes it. file says
which sides the file has and names each; status says how the two
relate, which having both sides does not answer: a path that changed
is renamed, an object kind that changed type-changed.
Fields§
§file: FileSides§status: FileStatusSorted and deduplicated. During classify, the tags so far: the
bundled rules, git attributes, and the plugins before this one.
Implementations§
Source§impl FileEntry
impl FileEntry
Sourcepub fn sides(&self) -> Pairing<&FileRef>
pub fn sides(&self) -> Pairing<&FileRef>
The sides the file has, as the pairing the rest of the SDK speaks.
Sourcepub fn side(&self) -> &FileRef
pub fn side(&self) -> &FileRef
The side the file is named and shown by: the after side, or the before side for a deleted file.
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
FileEntry::side’s path, the path to show the file under.
Trait Implementations§
impl Eq for FileEntry
impl StructuralPartialEq for FileEntry
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
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