pub struct FilePatch {
pub old_path: String,
pub new_path: String,
pub hunks: Vec<PatchHunk>,
pub is_new_file: bool,
pub is_deleted: bool,
}Expand description
A patch for a single file — the full combo sequence for one target.
Fields§
§old_path: StringPath of the original file.
new_path: StringPath of the new file (may differ for renames).
hunks: Vec<PatchHunk>The ordered hunks (moves) that compose this patch.
is_new_file: boolWhether this patch creates a brand-new file.
is_deleted: boolWhether this patch deletes the file entirely.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FilePatch
impl<'de> Deserialize<'de> for FilePatch
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 FilePatch
impl RefUnwindSafe for FilePatch
impl Send for FilePatch
impl Sync for FilePatch
impl Unpin for FilePatch
impl UnsafeUnpin for FilePatch
impl UnwindSafe for FilePatch
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