#[non_exhaustive]pub struct TreeEntry {
pub type: ObjectType,
pub sha: String,
pub path: String,
pub mode: String,
pub size: i64,
/* private fields */
}Expand description
Represents an entry within a tree structure (like a Git tree).
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.type: ObjectTypeOutput only. The type of the object (TREE, BLOB, COMMIT). Output-only.
sha: StringOutput only. The SHA-1 hash of the object (unique identifier). Output-only.
path: StringOutput only. The path of the file or directory within the tree (e.g., “src/main/java/MyClass.java”). Output-only.
mode: StringOutput only. The file mode as a string (e.g., “100644”). Indicates file type. Output-only.
size: i64Output only. The size of the object in bytes (only for blobs). Output-only.
Implementations§
Trait Implementations§
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 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