pub struct CommitInfo {
pub oid: String,
pub summary: String,
pub author: Option<String>,
pub date: Option<String>,
pub parent_oids: Vec<String>,
pub message: String,
pub author_email: Option<String>,
pub author_date: Option<OffsetDateTime>,
pub committer: Option<String>,
pub committer_email: Option<String>,
pub commit_date: Option<OffsetDateTime>,
}Expand description
Represents commit metadata extracted from git repository.
This is a pure data structure containing commit information without any git2 object dependencies.
Fields§
§oid: String§summary: StringAuthor name. None for synthetic pseudo-commits (staged/unstaged changes).
date: Option<String>Raw commit timestamp (seconds since epoch). None for synthetic pseudo-commits.
parent_oids: Vec<String>§message: StringFull commit message including body (all lines).
Author email address. None for synthetic pseudo-commits.
Author date with timezone. None for synthetic pseudo-commits.
committer: Option<String>Committer name. None for synthetic pseudo-commits.
committer_email: Option<String>Committer email address. None for synthetic pseudo-commits.
commit_date: Option<OffsetDateTime>Commit date with timezone. None for synthetic pseudo-commits.
Trait Implementations§
Source§impl Clone for CommitInfo
impl Clone for CommitInfo
Source§fn clone(&self) -> CommitInfo
fn clone(&self) -> CommitInfo
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 CommitInfo
impl RefUnwindSafe for CommitInfo
impl Send for CommitInfo
impl Sync for CommitInfo
impl Unpin for CommitInfo
impl UnsafeUnpin for CommitInfo
impl UnwindSafe for CommitInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more