pub struct DiffReport {
pub output_kind: &'static str,
pub status: &'static str,
pub from_state: Option<String>,
pub to_state: Option<String>,
pub changed_path_count: usize,
pub stats: DiffStats,
pub changes: Vec<FileChange>,
pub semantic_changes: Option<Vec<SemanticChangeEntry>>,
pub context: Option<Vec<FileContextEntry>>,
pub broader_guidance: Option<Vec<ContextSnippet>>,
pub patch: Option<String>,
pub worktree_mode: bool,
}Fields§
§output_kind: &'static str§status: &'static str§from_state: Option<String>§to_state: Option<String>§changed_path_count: usize§stats: DiffStats§changes: Vec<FileChange>§semantic_changes: Option<Vec<SemanticChangeEntry>>§context: Option<Vec<FileContextEntry>>§broader_guidance: Option<Vec<ContextSnippet>>§patch: Option<String>Rendered unified-diff text, targeting a clean git apply
round-trip (patch(1) compatibility is best-effort). Populated
whenever line-level hunks exist regardless of the --patch flag,
so JSON consumers always see a parseable diff.
worktree_mode: boolImplementations§
Source§impl DiffReport
impl DiffReport
pub const CONTRACT: ReportContract
pub fn new( from_state: Option<String>, to_state: Option<String>, changes: Vec<FileChange>, semantic_changes: Option<Vec<SemanticChangeEntry>>, context: Option<Vec<FileContextEntry>>, broader_guidance: Option<Vec<ContextSnippet>>, ) -> Self
pub fn with_stats( from_state: Option<String>, to_state: Option<String>, changes: Vec<FileChange>, semantic_changes: Option<Vec<SemanticChangeEntry>>, context: Option<Vec<FileContextEntry>>, broader_guidance: Option<Vec<ContextSnippet>>, stats: DiffStats, ) -> Self
Trait Implementations§
Source§impl Clone for DiffReport
impl Clone for DiffReport
Source§fn clone(&self) -> DiffReport
fn clone(&self) -> DiffReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiffReport
impl Debug for DiffReport
Source§impl HeddleReport for DiffReport
impl HeddleReport for DiffReport
const CONTRACT: ReportContract = DiffReport::CONTRACT
Source§impl JsonSchema for DiffReport
impl JsonSchema for DiffReport
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 DiffReport
impl RefUnwindSafe for DiffReport
impl Send for DiffReport
impl Sync for DiffReport
impl Unpin for DiffReport
impl UnsafeUnpin for DiffReport
impl UnwindSafe for DiffReport
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