pub struct GitCommit {
pub tree: Sha1Id,
pub parents: Vec<Sha1Id>,
pub author: Person,
pub committer: Person,
pub message: Vec<u8>,
pub has_gpgsig: bool,
}Expand description
A parsed (arbitrary) git commit.
Fields§
§tree: Sha1Id§parents: Vec<Sha1Id>§committer: Person§message: Vec<u8>Verbatim message bytes (may be any encoding).
has_gpgsig: booltrue when a gpgsig/gpgsig-sha256 header was present
(carried via retained raw bytes, surfaced for UX/provenance).
Trait Implementations§
impl Eq for GitCommit
impl StructuralPartialEq for GitCommit
Auto Trait Implementations§
impl Freeze for GitCommit
impl RefUnwindSafe for GitCommit
impl Send for GitCommit
impl Sync for GitCommit
impl Unpin for GitCommit
impl UnsafeUnpin for GitCommit
impl UnwindSafe for GitCommit
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