pub struct AiCommitCheck {
pub commit: String,
pub passes: bool,
pub issues: Vec<AiIssue>,
pub suggestion: Option<AiSuggestion>,
pub summary: Option<String>,
}Expand description
Single commit check from AI response.
Fields§
§commit: StringCommit hash (short or full).
passes: boolWhether the commit passes all checks.
issues: Vec<AiIssue>List of issues found.
suggestion: Option<AiSuggestion>Suggested message improvement.
summary: Option<String>Brief summary of what this commit changes (for cross-commit coherence).
Trait Implementations§
Source§impl Clone for AiCommitCheck
impl Clone for AiCommitCheck
Source§fn clone(&self) -> AiCommitCheck
fn clone(&self) -> AiCommitCheck
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 AiCommitCheck
impl Debug for AiCommitCheck
Source§impl<'de> Deserialize<'de> for AiCommitCheck
impl<'de> Deserialize<'de> for AiCommitCheck
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.
Source§impl JsonSchema for AiCommitCheck
impl JsonSchema for AiCommitCheck
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AiCommitCheck
impl RefUnwindSafe for AiCommitCheck
impl Send for AiCommitCheck
impl Sync for AiCommitCheck
impl Unpin for AiCommitCheck
impl UnsafeUnpin for AiCommitCheck
impl UnwindSafe for AiCommitCheck
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