pub struct Commit {
pub id: Oid,
pub author: Author,
pub committer: Author,
pub message: String,
pub summary: String,
pub parents: Vec<Oid>,
}Expand description
Commit is the metadata of a Git commit.
Fields§
§id: OidObject Id
The author of the commit.
committer: AuthorThe actor who committed this commit.
message: StringThe long form message of the commit.
summary: StringThe summary message of the commit.
parents: Vec<Oid>The parents of this commit.
Implementations§
Trait Implementations§
Source§impl Ord for Commit
impl Ord for Commit
Source§impl PartialOrd for Commit
impl PartialOrd for Commit
impl Eq for Commit
impl StructuralPartialEq for Commit
Auto Trait Implementations§
impl Freeze for Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnsafeUnpin for Commit
impl UnwindSafe for Commit
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