pub struct CommitData {
pub tree: ObjectId,
pub parents: Vec<ObjectId>,
pub author: String,
pub committer: String,
pub encoding: Option<String>,
pub message: String,
pub raw_message: Option<Vec<u8>>,
}Expand description
Parsed representation of a commit object.
Fields§
§tree: ObjectIdThe tree this commit points to.
parents: Vec<ObjectId>Parent commit IDs (zero or more).
Author field (raw string as Git stores it).
committer: StringCommitter field (raw string as Git stores it).
encoding: Option<String>Optional encoding override (e.g. "UTF-8").
message: StringCommit message (everything after the blank line).
raw_message: Option<Vec<u8>>Optional raw message bytes for non-UTF-8 commit messages.
When set, serialize_commit uses these bytes instead of message.
Optional raw message bytes for non-UTF-8 messages.
Trait Implementations§
Source§impl Clone for CommitData
impl Clone for CommitData
Source§fn clone(&self) -> CommitData
fn clone(&self) -> CommitData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommitData
impl RefUnwindSafe for CommitData
impl Send for CommitData
impl Sync for CommitData
impl Unpin for CommitData
impl UnsafeUnpin for CommitData
impl UnwindSafe for CommitData
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