pub struct CommitInfo {
pub hash: String,
pub author: String,
pub email: String,
pub timestamp: i64,
pub message: String,
pub files_changed: Vec<FileChange>,
}Expand description
Raw commit data extracted from git history.
§Examples
use argus_gitpulse::mining::CommitInfo;
let info = CommitInfo {
hash: "abc123".into(),
author: "alice".into(),
email: "alice@example.com".into(),
timestamp: 1700000000,
message: "fix: auth bug".into(),
files_changed: vec![],
};
assert_eq!(info.author, "alice");Fields§
§hash: StringShort commit hash.
Author name.
email: StringAuthor email.
timestamp: i64Unix timestamp of the commit.
message: StringFirst line of commit message.
files_changed: Vec<FileChange>Files modified in this commit.
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