pub struct UnifiedDiff {
pub path: String,
pub target_file: String,
pub diff_content: String,
pub hunks: Vec<DiffHunk>,
}Expand description
A unified diff for a single file
Represents a complete diff with all hunks for a target file.
Fields§
§path: StringPath from the diff header (may include a/ or b/ prefix)
target_file: StringTarget file path (normalized, without a/ or b/ prefix)
diff_content: StringFull diff content as a string
hunks: Vec<DiffHunk>All hunks in this diff
Trait Implementations§
Source§impl Clone for UnifiedDiff
impl Clone for UnifiedDiff
Source§fn clone(&self) -> UnifiedDiff
fn clone(&self) -> UnifiedDiff
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 UnifiedDiff
impl Debug for UnifiedDiff
Source§impl PartialEq for UnifiedDiff
impl PartialEq for UnifiedDiff
impl Eq for UnifiedDiff
impl StructuralPartialEq for UnifiedDiff
Auto Trait Implementations§
impl Freeze for UnifiedDiff
impl RefUnwindSafe for UnifiedDiff
impl Send for UnifiedDiff
impl Sync for UnifiedDiff
impl Unpin for UnifiedDiff
impl UnsafeUnpin for UnifiedDiff
impl UnwindSafe for UnifiedDiff
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.