pub struct PatchSectionResult {
pub path: String,
pub diff: String,
pub first_changed_line: Option<u32>,
pub warnings: Vec<String>,
pub new_hash: String,
}Expand description
Result of applying one section.
Fields§
§path: StringCanonical file path that was edited.
diff: StringCompact post-edit diff preview (omp-style renumbered preview).
first_changed_line: Option<u32>1-indexed first changed line, if any.
warnings: Vec<String>Warnings (parse warnings, recovery notices, boundary repair, etc.).
new_hash: StringContent hash of the post-edit file — the tag for the next [path#TAG].
Trait Implementations§
Source§impl Clone for PatchSectionResult
impl Clone for PatchSectionResult
Source§fn clone(&self) -> PatchSectionResult
fn clone(&self) -> PatchSectionResult
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 moreAuto Trait Implementations§
impl Freeze for PatchSectionResult
impl RefUnwindSafe for PatchSectionResult
impl Send for PatchSectionResult
impl Sync for PatchSectionResult
impl Unpin for PatchSectionResult
impl UnsafeUnpin for PatchSectionResult
impl UnwindSafe for PatchSectionResult
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