pub struct TreeEntry {
pub mode: String,
pub sha: String,
pub path: String,
}Expand description
A single entry in a ref’s tree.
Returned by read_tree so callers can rebuild a tree incrementally,
preserving the git object of any unchanged blob (content-addressed dedup).
Fields§
§mode: StringThe git file mode (for example 100644 for a regular file).
sha: StringThe blob object SHA.
path: StringThe full path of the entry within the tree (for example
sessions/<uuid>.enc).
Trait Implementations§
impl Eq for TreeEntry
impl StructuralPartialEq for TreeEntry
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnsafeUnpin for TreeEntry
impl UnwindSafe for TreeEntry
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