pub struct CommitAnalysisForAI {
pub detected_type: String,
pub detected_scope: String,
pub proposed_message: String,
pub file_changes: FileChanges,
pub diff_summary: String,
pub diff_file: String,
pub diff_content: String,
}Expand description
Enhanced commit analysis for AI processing with full diff content
Fields§
§detected_type: StringAutomatically detected conventional commit type (feat, fix, docs, test, chore, etc.)
detected_scope: StringAutomatically detected scope based on file paths (cli, git, data, etc.)
proposed_message: StringAI-generated conventional commit message based on file changes
file_changes: FileChangesDetailed statistics about file changes in this commit
diff_summary: StringGit diff –stat output showing lines changed per file
diff_file: StringPath to diff file showing line-by-line changes
diff_content: StringFull diff content for AI analysis
Implementations§
Source§impl CommitAnalysisForAI
impl CommitAnalysisForAI
Sourcepub fn from_commit_analysis(analysis: CommitAnalysis) -> Result<Self>
pub fn from_commit_analysis(analysis: CommitAnalysis) -> Result<Self>
Convert from basic CommitAnalysis by loading diff content from file
Trait Implementations§
Source§impl Clone for CommitAnalysisForAI
impl Clone for CommitAnalysisForAI
Source§fn clone(&self) -> CommitAnalysisForAI
fn clone(&self) -> CommitAnalysisForAI
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 CommitAnalysisForAI
impl Debug for CommitAnalysisForAI
Source§impl<'de> Deserialize<'de> for CommitAnalysisForAI
impl<'de> Deserialize<'de> for CommitAnalysisForAI
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 CommitAnalysisForAI
impl RefUnwindSafe for CommitAnalysisForAI
impl Send for CommitAnalysisForAI
impl Sync for CommitAnalysisForAI
impl Unpin for CommitAnalysisForAI
impl UnwindSafe for CommitAnalysisForAI
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