pub struct CommitContext {
pub diff: String,
pub recent_commits: Vec<String>,
pub branch: String,
pub file_contents: Vec<FileContext>,
pub changed_files: Vec<String>,
pub sensitive_report: SensitiveReport,
pub sensitive_findings: Vec<SensitiveFinding>,
pub has_sensitive_content: bool,
}Expand description
Full context for commit message generation.
Fields§
§diff: String§recent_commits: Vec<String>§branch: String§file_contents: Vec<FileContext>§changed_files: Vec<String>§sensitive_report: SensitiveReport§sensitive_findings: Vec<SensitiveFinding>§has_sensitive_content: boolTrait Implementations§
Source§impl Clone for CommitContext
impl Clone for CommitContext
Source§fn clone(&self) -> CommitContext
fn clone(&self) -> CommitContext
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 CommitContext
impl RefUnwindSafe for CommitContext
impl Send for CommitContext
impl Sync for CommitContext
impl Unpin for CommitContext
impl UnsafeUnpin for CommitContext
impl UnwindSafe for CommitContext
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