pub struct WorktreeDiff {
pub has_changes: bool,
pub files: Vec<FileSummary>,
pub unified_diff: String,
}Expand description
The aggregate diff for a single run’s worktree. Returned by
GET /api/worktree/:run_id/diff.
Fields§
§has_changes: boolTrue when the worktree diverges from the base branch in any way (committed OR uncommitted).
files: Vec<FileSummary>Per-file summary (path, kind, +/- counts).
unified_diff: StringUnified diff covering committed changes (git diff HEAD...<branch_base>)
merged with any uncommitted working-tree changes.
Trait Implementations§
Source§impl Clone for WorktreeDiff
impl Clone for WorktreeDiff
Source§fn clone(&self) -> WorktreeDiff
fn clone(&self) -> WorktreeDiff
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 WorktreeDiff
impl Debug for WorktreeDiff
Source§impl<'de> Deserialize<'de> for WorktreeDiff
impl<'de> Deserialize<'de> for WorktreeDiff
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 WorktreeDiff
impl RefUnwindSafe for WorktreeDiff
impl Send for WorktreeDiff
impl Sync for WorktreeDiff
impl Unpin for WorktreeDiff
impl UnsafeUnpin for WorktreeDiff
impl UnwindSafe for WorktreeDiff
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