pub enum ObjectContents {
Blob(Vec<u8>),
Tree(Vec<TreeEntry>),
Commit(CommitData),
Tag(TagData),
}Expand description
Parsed object payload for display or serialization.
Variants§
Blob(Vec<u8>)
Raw blob bytes.
Tree(Vec<TreeEntry>)
Tree entries in Git sort order.
Commit(CommitData)
Parsed commit headers and message.
Tag(TagData)
Parsed annotated tag.
Trait Implementations§
Source§impl Clone for ObjectContents
impl Clone for ObjectContents
Auto Trait Implementations§
impl Freeze for ObjectContents
impl RefUnwindSafe for ObjectContents
impl Send for ObjectContents
impl Sync for ObjectContents
impl Unpin for ObjectContents
impl UnsafeUnpin for ObjectContents
impl UnwindSafe for ObjectContents
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