pub struct CommitCheckResult {
pub hash: String,
pub message: String,
pub issues: Vec<CommitIssue>,
pub suggestion: Option<CommitSuggestion>,
pub passes: bool,
pub summary: Option<String>,
}Expand description
Result of checking a single commit.
Fields§
§hash: StringCommit hash (short form).
message: StringOriginal commit message (first line).
issues: Vec<CommitIssue>List of issues found.
suggestion: Option<CommitSuggestion>Suggested improved message (if issues were found).
passes: boolWhether the commit passes all checks.
summary: Option<String>Brief summary of what this commit changes (for cross-commit coherence).
Trait Implementations§
Source§impl Clone for CommitCheckResult
impl Clone for CommitCheckResult
Source§fn clone(&self) -> CommitCheckResult
fn clone(&self) -> CommitCheckResult
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 CommitCheckResult
impl Debug for CommitCheckResult
Source§impl<'de> Deserialize<'de> for CommitCheckResult
impl<'de> Deserialize<'de> for CommitCheckResult
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
Source§impl From<AiCommitCheck> for CommitCheckResult
impl From<AiCommitCheck> for CommitCheckResult
Source§fn from(ai: AiCommitCheck) -> Self
fn from(ai: AiCommitCheck) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitCheckResult
impl RefUnwindSafe for CommitCheckResult
impl Send for CommitCheckResult
impl Sync for CommitCheckResult
impl Unpin for CommitCheckResult
impl UnsafeUnpin for CommitCheckResult
impl UnwindSafe for CommitCheckResult
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