pub struct CommitContext {
pub project: ProjectContext,
pub branch: BranchContext,
pub range: CommitRangeContext,
pub files: Vec<FileContext>,
pub user_provided: Option<String>,
}Expand description
Complete context information for intelligent commit message improvement.
Fields§
§project: ProjectContextProject-level context and conventions.
branch: BranchContextBranch analysis and work pattern detection.
range: CommitRangeContextMulti-commit analysis and work patterns.
files: Vec<FileContext>File-specific context and architectural understanding.
user_provided: Option<String>User-provided context information.
Implementations§
Source§impl CommitContext
impl CommitContext
Sourcepub fn is_significant_change(&self) -> bool
pub fn is_significant_change(&self) -> bool
Checks if this context suggests a significant change needing detailed commit message.
Sourcepub fn suggested_verbosity(&self) -> VerbosityLevel
pub fn suggested_verbosity(&self) -> VerbosityLevel
Returns the suggested commit message verbosity level.
Trait 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 moreSource§impl Debug for CommitContext
impl Debug for CommitContext
Source§impl Default for CommitContext
impl Default for CommitContext
Source§fn default() -> CommitContext
fn default() -> CommitContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitContext
impl<'de> Deserialize<'de> for CommitContext
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 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