pub struct TreeEntry {
pub mode: String,
pub kind: String,
pub size: Option<u64>,
pub path: String,
}Expand description
One entry of a recursive tree listing (GitRepo::ls_tree_recursive):
the git file mode (100644/100755 regular blob, 120000 symlink,
160000 submodule commit), the object kind (blob/commit), the blob
size in bytes (None for non-blobs), and the repo-relative path.
Fields§
§mode: String§kind: String§size: Option<u64>§path: StringTrait 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