pub struct GitObject {
pub id: ObjectId,
pub object_type: ObjectType,
pub data: Bytes,
}Expand description
A git object (blob, tree, commit, or tag).
Fields§
§id: ObjectIdThe object’s unique identifier (SHA-1 hash).
object_type: ObjectTypeThe type of object.
data: BytesThe raw object data (uncompressed).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GitObject
impl RefUnwindSafe for GitObject
impl Send for GitObject
impl Sync for GitObject
impl Unpin for GitObject
impl UnwindSafe for GitObject
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