pub struct Commit {
pub hash: Oid,
pub decoration: Option<String>,
pub headers: Vec<Header>,
pub message: String,
}Expand description
Parsed commit preamble.
Fields§
§hash: OidObject identifier from the commit <oid> line.
decoration: Option<String>Ref decoration following the hash (e.g. (HEAD -> main, origin/main)).
headers: Vec<Header>Headers in input order with original key casing (e.g. Author, Date).
message: StringCommit message, verbatim and including any source indentation.
Implementations§
Trait Implementations§
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