pub struct CommitInfo {
pub hash: String,
pub author: String,
pub date: DateTime<FixedOffset>,
pub original_message: String,
pub in_main_branches: Vec<String>,
pub analysis: CommitAnalysis,
}Expand description
Commit information structure.
Fields§
§hash: StringFull SHA-1 hash of the commit.
Commit author name and email address.
date: DateTime<FixedOffset>Commit date in ISO format with timezone.
original_message: StringThe original commit message as written by the author.
in_main_branches: Vec<String>Array of remote main branches that contain this commit.
analysis: CommitAnalysisAutomated analysis of the commit including type detection and proposed message.
Implementations§
Source§impl CommitInfo
impl CommitInfo
Sourcepub fn from_git_commit(repo: &Repository, commit: &Commit<'_>) -> Result<Self>
pub fn from_git_commit(repo: &Repository, commit: &Commit<'_>) -> Result<Self>
Creates a CommitInfo from a git2::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 moreSource§impl Debug for CommitInfo
impl Debug for CommitInfo
Source§impl<'de> Deserialize<'de> for CommitInfo
impl<'de> Deserialize<'de> for CommitInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitInfo
impl RefUnwindSafe for CommitInfo
impl Send for CommitInfo
impl Sync for CommitInfo
impl Unpin 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