pub struct PatchOutput {
pub success: bool,
pub applied_hunks: usize,
pub failed_hunks: usize,
pub failed_hunk_details: Vec<FailedHunkInfo>,
}Expand description
Output from patch operations
Fields§
§success: boolWhether the patch was successfully applied
applied_hunks: usizeNumber of hunks successfully applied
failed_hunks: usizeNumber of hunks that failed to apply
failed_hunk_details: Vec<FailedHunkInfo>Details about failed hunks
Trait Implementations§
Source§impl Clone for PatchOutput
impl Clone for PatchOutput
Source§fn clone(&self) -> PatchOutput
fn clone(&self) -> PatchOutput
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 PatchOutput
impl Debug for PatchOutput
Source§impl<'de> Deserialize<'de> for PatchOutput
impl<'de> Deserialize<'de> for PatchOutput
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 PatchOutput
impl RefUnwindSafe for PatchOutput
impl Send for PatchOutput
impl Sync for PatchOutput
impl Unpin for PatchOutput
impl UnwindSafe for PatchOutput
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